Skip to content

Commit

Permalink
refactor: Move scripts into separate subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
zelikos committed Jun 15, 2024
1 parent 04dbdf0 commit 9cd0fa5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,12 @@ ARG SOURCE_TAG="${SOURCE_TAG}"
## make modifications desired in your image and install packages by modifying the build.sh script
## the following RUN directive does all the things required to run "build.sh" as recommended.

COPY image-info.sh /tmp/image-info.sh
COPY packages.sh /tmp/packages.sh
COPY scripts/base /tmp/base/

COPY system_files/shared /

RUN mkdir -p /var/lib/alternatives && \
bash -c ". /tmp/image-info.sh" && \
bash -c ". /tmp/packages.sh" && \
bash -c ". /tmp/build-base.sh" && \
ostree container commit

# GNOME modifications
Expand Down
6 changes: 6 additions & 0 deletions scripts/base/build-base.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usrbin/env bash

set -ouex pipefail

. /tmp/base/image-info.sh
. /tmp/base/packages.sh
File renamed without changes.
2 changes: 1 addition & 1 deletion packages.sh → scripts/base/packages.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usrbin/env bash

set -ouex pipefail

Expand Down

0 comments on commit 9cd0fa5

Please sign in to comment.