Dockerfile and Makefile cleanup

This commit is contained in:
Peter Honeder
2015-06-18 13:06:17 -07:00
parent 7b2dca96c4
commit 0cd34830b1
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
# image_ps
#
# VERSION 0.0.2
# VERSION 0.0.1
FROM ubuntu:14.04
MAINTAINER Peter Honeder <peterhon@microsoft.com>
@@ -8,7 +8,6 @@ MAINTAINER Peter Honeder <peterhon@microsoft.com>
RUN apt-get update
RUN apt-get install -y openssh-server wget libstdc++6 libunwind8
RUN mkdir /var/run/sshd
#RUN echo 'root:asldkfj23l4kj2lkajsdf' | chpasswd
RUN echo 'root:pass' | chpasswd
RUN adduser --shell /opt/app_base/runps.sh --disabled-password --gecos "" test1
RUN echo 'test1:pass' | chpasswd
@@ -28,6 +27,7 @@ RUN chmod -R ugo+rX /opt/app_base
EXPOSE 22
EXPOSE 4201
#CMD /usr/sbin/sshd && /usr/bin/shellinaboxd -s /:AUTH:HOME:/home/test1/app_base/runps.sh -p 4201 -t -v
# start sshd in daemonized mode, start shellinaboxd in interactive mode (must be started that way using docker's CMD)
CMD /usr/sbin/sshd && /usr/bin/shellinaboxd -s /:LOGIN -p 4201 -t -v
-1
View File
@@ -193,7 +193,6 @@ cleanall: clean
docker-build:
sudo docker build --no-cache=false -t image_ps .
$(eval INSTANCE_ID := $(shell sudo docker inspect -f '{{.Id}}' image_ps))
rm -rf
docker-run: docker-build
sudo docker run -d -P --name test_ps image_ps