Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ca7bbeb

Browse files
committedSep 4, 2023
cleaned up docker files
1 parent 063516a commit ca7bbeb

File tree

7 files changed

+64
-59
lines changed

7 files changed

+64
-59
lines changed
 

‎demo/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,14 @@ RUN apt-get update \
126126
ARG UID=1000
127127
ARG GID=1000
128128

129-
RUN groupadd \
130-
--gid $GID \
131-
agent
132-
RUN useradd \
133-
--create-home \
134-
--uid $UID \
135-
--gid $GID \
136-
agent
129+
RUN groupadd \
130+
--gid $GID \
131+
agent \
132+
&& useradd \
133+
--create-home \
134+
--uid $UID \
135+
--gid $GID \
136+
agent
137137

138138
USER agent
139139
WORKDIR /home/agent

‎demo/Dockerfile.alpine

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ RUN apk update \
125125
ARG UID=1000
126126
ARG GID=1000
127127

128-
RUN addgroup \
129-
--gid $GID \
130-
agent
131-
RUN adduser \
132-
--home /home/agent \
133-
--disabled-password \
134-
--uid $UID \
135-
--ingroup agent \
136-
agent
128+
RUN addgroup \
129+
--gid $GID \
130+
agent \
131+
&& adduser \
132+
--home /home/agent \
133+
--disabled-password \
134+
--uid $UID \
135+
--ingroup agent \
136+
agent
137137

138138
USER agent
139139
WORKDIR /home/agent

‎demo/compose/adapter/Dockerfile

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,21 @@
22
FROM alpine:3.18 AS os
33

44
ARG LOG_FILE=""
5-
6-
# install ruby for simulator
7-
RUN apk update \
8-
&& apk add ruby
9-
105
ARG UID=1000
116
ARG GID=1000
127

13-
RUN groupadd --gid $GID adapter
14-
RUN useradd --create-home --uid $UID --gid $GID adapter
8+
9+
# install ruby for simulator
10+
RUN apk update \
11+
&& apk add ruby \
12+
&& groupadd \
13+
--gid $GID \
14+
adapter \
15+
&& useradd \
16+
--create-home \
17+
--uid $UID \
18+
--gid $GID \
19+
adapter
1520

1621
USER adapter
1722
WORKDIR /home/adapter

‎demo/compose/agent/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ RUN apk update \
118118
ARG UID=1000
119119
ARG GID=1000
120120

121-
RUN addgroup \
122-
--gid $GID \
123-
agent
124-
RUN adduser \
125-
--home /home/agent \
126-
--disabled-password \
127-
--uid $UID \
128-
--ingroup agent \
129-
agent
121+
RUN addgroup \
122+
--gid $GID \
123+
agent \
124+
&& adduser \
125+
--home /home/agent \
126+
--disabled-password \
127+
--uid $UID \
128+
--ingroup agent \
129+
agent
130130

131131
USER agent
132132
WORKDIR /home/agent

‎docker/alpine/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ RUN apk update \
115115
ARG UID=1000
116116
ARG GID=1000
117117

118-
RUN addgroup \
119-
--gid $GID \
120-
agent
121-
RUN adduser \
122-
--home /home/agent \
123-
--disabled-password \
124-
--uid $UID \
125-
--ingroup agent \
126-
agent
118+
RUN addgroup \
119+
--gid $GID \
120+
agent \
121+
&& adduser \
122+
--home /home/agent \
123+
--disabled-password \
124+
--uid $UID \
125+
--ingroup agent \
126+
agent
127127

128128
USER agent
129129
WORKDIR /home/agent

‎docker/replicator/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ RUN apk update \
114114
ARG UID=1000
115115
ARG GID=1000
116116

117-
RUN addgroup \
118-
--gid $GID \
119-
agent
120-
RUN adduser \
121-
--home /home/agent \
122-
--disabled-password \
123-
--uid $UID \
124-
--ingroup agent \
125-
agent
117+
RUN addgroup \
118+
--gid $GID \
119+
agent \
120+
&& adduser \
121+
--home /home/agent \
122+
--disabled-password \
123+
--uid $UID \
124+
--ingroup agent \
125+
agent
126126

127127
USER agent
128128
WORKDIR /home/agent

‎docker/ubuntu/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,14 @@ RUN apt-get update \
113113
ARG UID=1000
114114
ARG GID=1000
115115

116-
RUN groupadd \
117-
--gid $GID \
118-
agent
119-
RUN useradd \
120-
--create-home \
121-
--uid $UID \
122-
--gid $GID \
123-
agent
116+
RUN groupadd \
117+
--gid $GID \
118+
agent \
119+
&& useradd \
120+
--create-home \
121+
--uid $UID \
122+
--gid $GID \
123+
agent
124124

125125
USER agent
126126
WORKDIR /home/agent

0 commit comments

Comments
 (0)
This repository has been archived.