fixed typo, added bash to package list

This commit is contained in:
Jeffrey Paul 2019-01-23 16:26:12 +00:00
parent 93e70acc93
commit 26dd9001fa
3 changed files with 9 additions and 5 deletions

View File

@ -18,6 +18,7 @@ apt update && apt upgrade -y
PKGS="
apt-file
apt-utils
bash
bash-completion
build-essential
byobu

View File

@ -35,7 +35,7 @@ RUN dpkg -i /tmp/atom.deb && rm /tmp/atom.deb
########################################################
RUN git clone https://github.com/creationix/nvm.git /usr/local/nvm
ADD ./nvmsetup.sh /etc/profile.d/nvmsetup.sh
RUN \ bash -c 'source /etc/profile.d/nvmsetup.sh && \
RUN bash -c 'source /etc/profile.d/nvmsetup.sh && \
nvm install --lts && \
nvm use default'
@ -43,11 +43,10 @@ RUN \ bash -c 'source /etc/profile.d/nvmsetup.sh && \
##### javascript, my favorite
########################################################
# yes i know yarn says not to install it this way
RUN \
source /etc/profile.d/nvmsetup.sh && \
RUN bash -c 'source /etc/profile.d/nvmsetup.sh && \
nvm use default && \
npm install -g npm && \
npm install -g yarn
npm install -g yarn'
RUN yarn global add prettier
RUN yarn global add create-react-app

View File

@ -1,10 +1,11 @@
REMOTEHOST := root@las2.bounce
IMAGENAME := sneak/dockerized-workstation
YYYYMMDD := $(shell date +%Y%m%d)
default: remote-build
build:
docker build -t $(IMAGENAME) .
docker build -t $(IMAGENAME):$(YYYYMMDD) .
upload:
rsync -avP --delete ./ $(REMOTEHOST):dockerized-workstation/
@ -12,5 +13,8 @@ upload:
remote-build: upload
ssh -t $(REMOTEHOST) "cd dockerized-workstation && make build"
publish:
ssh -t $(REMOTEHOST) "cd dockerized-workstation && docker push $(IMAGENAME):$(YYYYMMDD)"
tryout:
ssh -t $(REMOTEHOST) "docker run -ti $(IMAGENAME)"