Skip to content

Commit 838b641

Browse files
committed
Add Dockerfile
Signed-off-by: Federico Guerinoni <guerra@develer.com>
1 parent 1b241d0 commit 838b641

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM ubuntu:20.04
2+
3+
LABEL maintainer="guerra@develer.com"
4+
LABEL version="0.1"
5+
LABEL description="This is custom Docker Image for testing arduino-connector with docker and mosquitto."
6+
7+
ARG DEBIAN_FRONTEND=noninteractive
8+
9+
RUN apt update
10+
RUN apt install -y \
11+
curl \
12+
gcc \
13+
mosquitto \
14+
docker.io
15+
16+
RUN curl -O https://dl.google.com/go/go1.15.2.linux-amd64.tar.gz
17+
RUN tar xvf go1.15.2.linux-amd64.tar.gz
18+
RUN mv go /usr/local
19+
20+
ENV PATH=$PATH:/usr/local/go/bin
21+
22+
COPY scripts .
23+
COPY config/daemon.json /etc/docker/daemon.json
24+
25+
WORKDIR /home
26+
27+
ENTRYPOINT "/start.sh"

config/daemon.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"storage-driver": "vfs"
3+
}

scripts/start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
rm /var/run/docker.pid
4+
dockerd &
5+
sleep 2
6+
echo " "
7+
exec bash

0 commit comments

Comments
 (0)