Build Java Docker Image from Ubuntu: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="bash">
docker build -t 'chorke/ebis' -f ./Dockerfile ./
docker run --name='initd' -d -p 2223:22 -p 8080:80 chorke/ebis
docker rm initd && docker rmi chorke/ebis
docker history chorke/ebis


docker build -t 'chorke/ebis' -f ./Dockerfile ./
service status ssh
docker run --name='initd' -d -p 2223:22 -p 8080:80 chorke/ebis
service --status-all
docker rm initd && docker rmi chorke/ebis
printenv


docker history chorke/ebis
apt -y install git
service status ssh
apt -y install openjdk-8-jdk
service --status-all
apt -y install zip
printenv


apt -y install git
wget http://cdn.chorke.org/soft/comn/ant/apache-ant-1.9.9.zip &&
apt -y install openjdk-8-jdk
unzip apache-ant-1.9.9.zip /opt/cli/
apt -y install zip


wget http://cdn.chorke.org/soft/comn/ant/apache-ant-1.9.9.zip &&
wget http://cdn.chorke.org/soft/comn/maven/apache-maven-3.3.9.zip &&
unzip apache-ant-1.9.9.zip /opt/cli/
unzip apache-maven-3.3.9.zip -d cli/
 
</syntaxhighlight>
wget http://cdn.chorke.org/soft/comn/maven/apache-maven-3.3.9.zip &&
unzip apache-maven-3.3.9.zip -d cli/

Revision as of 12:36, 27 January 2018

Dockerfile

FROM ubuntu:16.04
MAINTAINER Chorke, Inc.<[email protected]>

ADD assets /assets
RUN /assets/setup.sh

EXPOSE 22
EXPOSE 8080

CMD /usr/sbin/startup.sh &&
/usr/sbin/sshd -D
docker build -t 'chorke/ebis' -f ./Dockerfile ./
docker run --name='initd' -d -p 2223:22 -p 8080:80 chorke/ebis
docker rm initd && docker rmi chorke/ebis
docker history chorke/ebis

service status ssh
service --status-all
printenv

apt -y install git
apt -y install openjdk-8-jdk
apt -y install zip

wget http://cdn.chorke.org/soft/comn/ant/apache-ant-1.9.9.zip &&
unzip apache-ant-1.9.9.zip /opt/cli/

wget http://cdn.chorke.org/soft/comn/maven/apache-maven-3.3.9.zip &&
unzip apache-maven-3.3.9.zip -d cli/