Skip to content

Commit 47f21ad

Browse files
author
samuel.gondouin
committed
Docker image: Ubuntu 18.04
0 parents  commit 47f21ad

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

Dockerfile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
ARG image=ubuntu:18.04
2+
FROM $image as system
3+
4+
5+
ARG localbuild
6+
RUN echo "LOCALBUILD=$localbuild"
7+
RUN if [ "x$localbuild" != "x" ]; then sed -i 's#http://archive.ubuntu.com/#http://fr.archive.ubuntu.com/#' /etc/apt/sources.list; fi
8+
9+
ENV HOME=/root \
10+
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn \
11+
DEBIAN_FRONTEND=noninteractive \
12+
FILES='' \
13+
LANG=en_US.UTF-8 \
14+
LANGUAGE=en_US.UTF-8 \
15+
LC_ALL=C.UTF-8
16+
17+
18+
# built-in packages
19+
RUN apt-get update \
20+
&& apt-get install -y --no-install-recommends software-properties-common curl \
21+
&& apt-get update \
22+
&& apt-get install -y --no-install-recommends --allow-unauthenticated \
23+
mc screen vim \
24+
&& apt-get autoclean \
25+
&& apt-get autoremove \
26+
&& rm -rf /var/lib/apt/lists/*

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Docker image: Ubuntu 18.04
2+
==========================

build.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
docker build -t nekrofage/ubuntu1804test:latest .

exec.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
docker run --hostname local \
4+
--rm \
5+
-e USER=util01 -e PASSWORD=mot2passe \
6+
-ti nekrofage/ubuntu1804test:latest \
7+
/bin/bash

0 commit comments

Comments
 (0)