Skip to content

Commit 9aed8d2

Browse files
committed
New Dockerfile with base image
1 parent a804fbb commit 9aed8d2

File tree

4 files changed

+38
-27
lines changed

4 files changed

+38
-27
lines changed

controller/Dockerfile

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,11 @@
1-
FROM ubuntu:14.04
2-
MAINTAINER Babu R <[email protected]>
1+
FROM codespaces/base-ubuntu-akurath:v0.1.0
32

4-
WORKDIR /workspace
5-
VOLUME /workspace
3+
MAINTAINER Vijayboopathy E <[email protected]>
64

7-
RUN apt-get update && \
8-
apt-get install -y make g++ python git curl wget openssh-server sudo vim libdevmapper-dev && \
9-
curl -sL https://deb.nodesource.com/setup | sudo bash - && \
10-
apt-get install -y nodejs && \
11-
npm -g install node-gyp akurath && \
12-
cd /usr/lib/node_modules/akurath/node_modules/shux/node_modules/pty.js && \
13-
make clean && \
14-
make
15-
16-
RUN mkdir /var/run/sshd && \
17-
wget -qO- https://get.docker.com/ | sh && \
5+
RUN wget -qO- https://get.docker.com/ | sh && \
186
curl -L "https://github.com/docker/compose/releases/download/1.10.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
197
chmod +x /usr/local/bin/docker-compose
208

21-
COPY motd.sh /opt/
22-
23-
RUN chmod +x /opt/motd.sh && \
24-
sh /opt/motd.sh && \
25-
rm -rf motd.sh
26-
27-
RUN useradd -ms /bin/bash devops && \
28-
echo 'devops:codespaces' |chpasswd && \
29-
adduser devops sudo && \
30-
echo 'devops ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
31-
329
EXPOSE 22 8000
3310

3411
CMD /usr/bin/akurath run

controller/Version-1.0/Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM ubuntu:14.04
2+
MAINTAINER Babu R <[email protected]>
3+
4+
WORKDIR /workspace
5+
VOLUME /workspace
6+
7+
RUN apt-get update && \
8+
apt-get install -y make g++ python git curl wget openssh-server sudo vim libdevmapper-dev && \
9+
curl -sL https://deb.nodesource.com/setup | sudo bash - && \
10+
apt-get install -y nodejs && \
11+
npm -g install node-gyp akurath && \
12+
cd /usr/lib/node_modules/akurath/node_modules/shux/node_modules/pty.js && \
13+
make clean && \
14+
make
15+
16+
RUN mkdir /var/run/sshd && \
17+
wget -qO- https://get.docker.com/ | sh && \
18+
curl -L "https://github.com/docker/compose/releases/download/1.10.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
19+
chmod +x /usr/local/bin/docker-compose
20+
21+
COPY motd.sh /opt/
22+
23+
RUN chmod +x /opt/motd.sh && \
24+
sh /opt/motd.sh && \
25+
rm -rf motd.sh
26+
27+
RUN useradd -ms /bin/bash devops && \
28+
echo 'devops:codespaces' |chpasswd && \
29+
adduser devops sudo && \
30+
echo 'devops ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
31+
32+
EXPOSE 22 8000
33+
34+
CMD /usr/bin/akurath run
File renamed without changes.

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ networks:
66

77
services:
88
docker:
9-
image: codespaces/docker-control:v0.1.0
9+
image: codespaces/docker-control:v0.1.1
1010
ports:
1111
- "8000:8000"
1212
- "80:80"

0 commit comments

Comments
 (0)