-
Notifications
You must be signed in to change notification settings - Fork 1
/
oc.template.alpine.minimal
57 lines (42 loc) · 1.36 KB
/
oc.template.alpine.minimal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
ARG BASE_IMAGE=alpine
FROM ${BASE_IMAGE}
MAINTAINER Alexandre DEVELY
RUN mkdir -p /composer/init.d
COPY etc/ /etc
ENV TERM linux
# add core lib and bin
RUN apk add --no-cache \
gnupg \
cups-client \
libpulse \
curl \
openssl \
xauth
ENV LANG en_US.utf8
############
COPY composer /composer
RUN apk add --no-cache --update bash nodejs npm
# Add nodejs service
RUN cd /composer/node/ocrun && npm install
# RUN cd /composer/node/ocdownload && npm install
##########
# Next command use $BUSER context
ENV BUSER balloon
ENV BGROUP balloon
ENV BUID 4096
ENV BGID 4096
# RUN adduser --disabled-password --gecos '' $BUSER
# RUN id -u $BUSER &>/dev/null ||
RUN addgroup --gid $BGID $BGROUP
RUN adduser -D -h /home/balloon -s /bin/sh -u $BUID -G balloon $BUSER
# create an ubuntu user
# PASS=`pwgen -c -n -1 10`
# PASS=ballon
# Change password for user balloon
# if --build-arg BUILD_BALLON_PASSWORD=1, set NODE_ENV to 'development' or set to null otherwise.
#ENV BALLOON_PASSWORD=${BUILD_BALLOON_PASSWORD:+development}
# if BUILD_BALLOON_PASSWORD is null, set it to 'abcdesktop' (or leave as is otherwise).
#ENV BALLOON_PASSWORD=${BUILD_BALLOON_PASSWORD:-abcdesktop}
RUN echo "balloon:lmdpocpetit" | chpasswd $BUSER
RUN mkdir -p /var/log/desktop && \
chown -R $BUSER:$BUSER /home/$BUSER /var/log/desktop