Compare commits

...

4 Commits

Author SHA1 Message Date
Vivian Lim 9e2e4c1242 add cloudcmd 2019-12-30 23:20:49 -08:00
Vivian Lim 588ed7dba1 add to ingress_frontend network 2019-12-30 18:33:45 -08:00
Vivian Lim d3f83b2b0f tiny cleanup 2019-12-30 18:32:49 -08:00
Vivian Lim e7706383e1 support fuse and bake some more tools into the image 2019-12-30 18:31:58 -08:00
3 changed files with 26 additions and 5 deletions

View File

@ -34,6 +34,12 @@ RUN pacman -Syu --noconfirm \
# clean cache
&& pacman -Scc --noconfirm
# some more packages
RUN pacman -Sy --noconfirm \
&& pacman -S base iputils ffmpeg imagemagick sshfs inotify-tools wget dnsutils youtube-dl --noconfirm \
# clean cache
&& pacman -Scc --noconfirm
# oh-my-zsh
RUN su vivlim -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh) --unattended" \
&& chsh -s /usr/bin/zsh vivlim
@ -48,9 +54,10 @@ RUN rm /home/vivlim/.zshrc
RUN pacman --noconfirm -Sy npm python-pipenv elixir \
&& pacman -Scc --noconfirm
# patch on some more packages I forgot to add before (if rebuilding, merge up!)
RUN pacman --noconfirm -Sy base iputils inotify-tools \
&& pacman -Scc --noconfirm
RUN npm install -g cloudcmd
# installing gritty requires root
RUN npm install -g gritty --unsafe
COPY launch.sh /launch.sh
COPY user_launch.sh /user_launch.sh

View File

@ -6,13 +6,19 @@ services:
container_name: arch
hostname: arch_container
volumes:
#- ./launch.sh:/launch.sh:ro
#- ./user_launch.sh:/user_launch.sh:ro
- ./launch.sh:/launch.sh:ro
- ./user_launch.sh:/user_launch.sh:ro
- /home/vivlim/.ssh:/home/vivlim/.ssh:ro
- /home/vivlim:/home/vivlim/external
- home:/home/vivlim
- ssh_server_keys:/etc/ssh/keys
devices:
- /dev/fuse
cap_add:
- SYS_ADMIN
restart: unless-stopped
networks:
- frontend
ports:
- "7722:22"
postgres_db:
@ -28,3 +34,8 @@ services:
volumes:
ssh_server_keys:
home:
networks:
frontend:
external:
name: ingress_frontend

View File

@ -27,3 +27,6 @@ if [ $? == 0 ]; then
echo "No password is set. You will be prompted for one when you connect."
tmux send-keys -t 1 "passwd vivlim" C-m
fi
# start cloudcmd
cloudcmd --terminal --terminal-path `gritty --path` &