Skip to content

Commit

Permalink
feat(systemd): change default workdir and cleanup installation files
Browse files Browse the repository at this point in the history
Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
  • Loading branch information
reubenmiller committed Oct 5, 2024
1 parent 67555cb commit 3bc9cd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion images/child-device-systemd/child.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ COPY child-device-systemd/config/sshd_config /etc/ssh/sshd_config

# Optional installations
COPY common/optional-installer.sh .
RUN ./optional-installer.sh
RUN ./optional-installer.sh \
&& rm optional-installer.sh

# Device bootstrap (to run one-off commands on first boot)
COPY common/utils/configure-device/runner.sh /usr/share/configure-device/
Expand Down
5 changes: 3 additions & 2 deletions images/debian-systemd/debian-systemd.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
&& chmod +x /usr/sbin/policy-rc.d

# Install base files to help with bootstrapping and common settings
WORKDIR /setup
WORKDIR /root
COPY common/bootstrap.sh /usr/bin/bootstrap.sh

# mqtt-logger
Expand Down Expand Up @@ -77,7 +77,8 @@ COPY common/config/sshd_config /etc/ssh/sshd_config

# Optional installations
COPY common/optional-installer.sh .
RUN ./optional-installer.sh
RUN ./optional-installer.sh \
&& rm optional-installer.sh

# Device bootstrap (to run one-off commands on first boot)
COPY common/utils/configure-device/runner.sh /usr/share/configure-device/
Expand Down

0 comments on commit 3bc9cd5

Please sign in to comment.