Skip to content

Commit eb59b94

Browse files
author
A Wokaty
committed
Run as biocbuild, consolidate startup scripts
1 parent bc86ecb commit eb59b94

File tree

3 files changed

+11
-63
lines changed

3 files changed

+11
-63
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ RUN useradd -ms /bin/bash biocbuild && apt update -qq && apt install sudo system
66
USER biocbuild
77
COPY . /home/biocbuild/bioconductor_salt
88
WORKDIR /home/biocbuild
9-
RUN DEBIAN_FRONTEND="noninteractive" bash bioconductor_salt/startup_bbs_standalone_${CYCLE}.sh ${NAME}
9+
RUN DEBIAN_FRONTEND="noninteractive" bash bioconductor_salt/startup_bbs_standalone.sh ${CYCLE} ${NAME}
1010

1111
FROM ${BASE_IMAGE} AS final
1212
COPY --from=build / /
13+
USER biocbuild
14+
WORKDIR /home/biocbuild
1315
ENTRYPOINT ["/bin/bash", "-c"]
1416
CMD ["/bbs_r_start"]
1517

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,19 @@ sudo cp -r bioconductor_salt/saltstack/salt /srv
2626
sudo cp -r bioconductor_salt/saltstack/pillar /srv
2727
sudo cp bioconductor_salt/saltstack/minion.d/minion.conf /etc/salt/minion
2828

29-
if [ "${1}" = "nvidia-noble" ]; then
29+
if [ "${1}" = "devel" ]; then
30+
cycle="devel"
31+
else
32+
cycle="release"
33+
fi
34+
35+
if [ "${2}" = "nvidia-noble" ]; then
3036
opt="_gpu"
3137
else
3238
opt=""
3339
fi
3440

35-
sudo mv /srv/pillar/custom/devel_standalone${opt}.sls /srv/pillar/custom/init.sls
41+
sudo mv /srv/pillar/custom/${cycle}_standalone${opt}.sls /srv/pillar/custom/init.sls
3642

3743
sudo salt-call --local state.highstate || true
3844

startup_bbs_standalone_release.sh

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)