Skip to content

Commit c869376

Browse files
committed
Fixes to support updated base image
1 parent b53d3a1 commit c869376

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

veracrypt/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ ENV GROUP_ID=100
1717
ENV UMASK=000
1818

1919
# Gui App Name default is "GUI_APPLICATION"
20-
ENV APP_NAME="VeraCrypt"
20+
RUN set-cont-env APP_NAME "VeraCrypt"
21+
RUN set-cont-env APP_VERSION $VERACRYPT_VERSION
2122

2223
# Default resolution, change if you like
2324
ENV DISPLAY_WIDTH=1280
@@ -56,16 +57,16 @@ RUN \
5657
del-pkg build-dependencies
5758

5859
# Copy X app start script to correct location
59-
COPY startapp.sh /startapp.sh
60+
COPY --chmod=777 startapp.sh /startapp.sh
6061

6162
# Copy default configuration file to correct location
6263
COPY Configuration.xml /defaults/Configuration.xml
6364

6465
# Add veracrypt init script
65-
COPY veracrypt.sh /etc/cont-init.d/90-veracrypt.sh
66+
COPY --chmod=777 veracrypt.sh /etc/cont-init.d/90-veracrypt.sh
6667

6768
# Add veracrypt sudoers script
68-
COPY sudoers.sh /etc/cont-init.d/01-veracrypt-sudoers.sh
69+
COPY --chmod=777 sudoers.sh /etc/cont-init.d/01-veracrypt-sudoers.sh
6970

7071
# Add dismount script
7172
COPY --chmod=777 dismount /etc/cont-finish.d/dismount

veracrypt/dismount

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/with-contenv sh
1+
#!/bin/sh
22

33
set -u # Treat unset variables as an error.
44

veracrypt/sudoers.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/usr/bin/with-contenv sh
1+
#!/bin/sh
22

33
set -e # Exit immediately if a command exits with a non-zero status.
44
set -u # Treat unset variables as an error.
55

6-
echo "$APP_USER ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/veracrypt
6+
echo "app ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/veracrypt
77

88
chmod 440 /etc/sudoers.d/veracrypt
99

1010
# echo "Defaults logfile=/var/log/sudo" > /etc/sudoers.d/logging
1111

12-
# chmod 440 /etc/sudoers.d/logging
12+
# chmod 440 /etc/sudoers.d/loggingdocke

veracrypt/veracrypt.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/with-contenv sh
1+
#!/bin/sh
22

33
set -e # Exit immediately if a command exits with a non-zero status.
44
set -u # Treat unset variables as an error.
@@ -16,4 +16,4 @@ fi
1616
# Adjust ownership of /config.
1717
chown -R $USER_ID:$GROUP_ID /config
1818
# Adjust ownership of /disks
19-
chown -R $USER_ID:$GROUP_ID /mnt/disks
19+
chown -R $USER_ID:$GROUP_ID /mnt/disks

0 commit comments

Comments
 (0)