added some packages and stuff

This commit is contained in:
Jeffrey Paul 2019-01-11 07:04:02 +00:00
parent 899ca95eab
commit 46bcc0864c
3 changed files with 45 additions and 7 deletions

View File

@ -3,15 +3,47 @@ FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive
ADD ./setup-mirror /tmp/setup-mirror ADD ./setup-mirror /tmp/setup-mirror
RUN bash /tmp/setup-mirror RUN bash /tmp/setup-mirror && rm /tmp/setup-mirror
RUN apt update && apt upgrade -y RUN apt update && apt upgrade -y
# deliberate decision to use distro docker and not latest
RUN apt install -y \ RUN apt install -y \
vim \ apt-file \
command-not-found \ bash-completion \
build-essential \ build-essential \
python3 \ byobu \
python3-pip \ command-not-found \
docker.io \
git \
golang-go \
ntp \
ntpdate \
openssh-server \
python-pip \
python3-dev \ python3-dev \
ruby python3-pip \
ruby \
software-properties-common \
vim
RUN apt-file update
RUN apt install -y powerline
RUN apt install -y htop
RUN apt install -y cryptsetup-bin
########################################################
##### python3 stuff
########################################################
RUN pip3 install awscli
RUN pip3 install httpie
RUN pip3 install pipenv
########################################################
##### nvm
########################################################
RUN git clone https://github.com/creationix/nvm.git /usr/local/nvm
ADD ./nvmsetup.sh /etc/profile.d/nvmsetup.sh

View File

@ -1,12 +1,16 @@
REMOTEHOST := root@las2.bounce REMOTEHOST := root@las2.bounce
IMAGENAME := sneak/dockerized-workstation
default: remote-build default: remote-build
build: build:
docker build -t sneak/dockerized-workstation . docker build -t $(IMAGENAME) .
upload: upload:
rsync -avP --delete ./ $(REMOTEHOST):dockerized-workstation/ rsync -avP --delete ./ $(REMOTEHOST):dockerized-workstation/
remote-build: upload remote-build: upload
ssh -t $(REMOTEHOST) "cd dockerized-workstation && make build" ssh -t $(REMOTEHOST) "cd dockerized-workstation && make build"
tryout:
ssh -t $(REMOTEHOST) "docker run -ti $(IMAGENAME)"

2
nvmsetup.sh Normal file
View File

@ -0,0 +1,2 @@
export NVM_DIR="/usr/local/nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm