mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Dockerfile and Makefile cleanup
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user