Compare commits
4 Commits
cb38e11cdc
...
9e2e4c1242
Author | SHA1 | Date |
---|---|---|
Vivian Lim | 9e2e4c1242 | |
Vivian Lim | 588ed7dba1 | |
Vivian Lim | d3f83b2b0f | |
Vivian Lim | e7706383e1 |
13
Dockerfile
13
Dockerfile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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` &
|
||||
|
|
Loading…
Reference in New Issue