Skip to content

Commit 7f01dc0

Browse files
authored
Dockerfile: remove umask (#236)
1 parent 50ff000 commit 7f01dc0

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain none
124124
# hadolint ignore=DL3004,SC3009
125125
RUN <<EOF
126126
set -e
127-
# set setgid on /workspace to inherit dev group
128-
chown root:dev /workspace
129-
chmod g+ws /workspace
130-
umask 002
131127
mkdir -p /workspace/simics/ispm/
132128

133129
# Download SIMICS components
@@ -163,7 +159,6 @@ cargo install cargo-simics-build
163159
# Build the project
164160
cargo simics-build -r
165161

166-
umask 002
167162
# Install the built package
168163
ispm packages -i target/release/*-linux64.ispm --non-interactive --trust-insecure-packages
169164

@@ -185,7 +180,6 @@ WORKDIR /workspace/projects/example/
185180
# hadolint ignore=DL3004,SC3009
186181
RUN <<EOF
187182
set -e
188-
umask 002
189183
# Create the example project
190184
ispm projects /workspace/projects/example/ --create \
191185
1000-${PUBLIC_SIMICS_PACKAGE_VERSION_1000} \
@@ -207,6 +201,9 @@ EOF
207201

208202
RUN <<EOF
209203
set -e
204+
# set perms root:dev and set permissions for dev group members
205+
chown -R root:dev /workspace
206+
chmod -R 775 /workspace
210207
# copy ISPM config to vscode user
211208
cp -r "/root/.config" "/home/${USERNAME}/.config"
212209
chown -R "${USERNAME}:dev" "/home/${USERNAME}/.config"

0 commit comments

Comments
 (0)