-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release/devel cycle and Bioc version in tag (#126)
* Add release/devel cycle and Bioc version in tag * Renaming cycle to branch * Change cycle to patch * Change devel tarball
- Loading branch information
Showing
6 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
FROM ubuntu:jammy | ||
ARG CYCLE=release | ||
RUN useradd -ms /bin/bash biocbuild && apt update -qq && apt install sudo systemd -y && usermod -aG sudo biocbuild && echo "biocbuild ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
USER biocbuild | ||
COPY . /home/biocbuild/bioconductor_salt | ||
WORKDIR /home/biocbuild | ||
RUN bash bioconductor_salt/simple_start_linux.sh | ||
RUN bash bioconductor_salt/startup_bbs_standalone_${CYCLE}.sh | ||
ENTRYPOINT ["/bbs_r_start"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{# Custom Settings #} | ||
|
||
{% set branch = 'devel' %} {# Use 'release' or 'devel' #} | ||
{% set version = '3.19' %} | ||
{% set environment = 'dev' %} {# Use 'dev' or 'prod' #} | ||
{% set r_download = 'https://stat.ethz.ch/R/daily/R-devel.tar.gz' %} | ||
{% set r_version = 'R-4.4' %} | ||
{% set r_previous_version = 'R-4.3' %} | ||
{% set cycle = 'patch' %} {# Use 'devel' for Spring to Fall, 'patch' for Fall to Spring #} | ||
{% set name = 'bbs-machine' %} | ||
{% set immunespace_pwd = '' %} | ||
{% set create_users = False %} | ||
{% set machine_type = 'standalone' %} |
6 changes: 3 additions & 3 deletions
6
saltstack/pillar/custom/standalone.sls → ...tack/pillar/custom/release_standalone.sls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Basic deps | ||
sudo apt update -qq | ||
sudo apt -y install curl git build-essential python3 python3-pip locales wget | ||
|
||
# Set up saltstack | ||
|
||
# https://docs.saltproject.io/salt/install-guide/en/latest/topics/install-by-operating-system/ubuntu.html | ||
|
||
sudo curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023.gpg https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg | ||
echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest jammy main" | sudo tee /etc/apt/sources.list.d/salt.list | ||
|
||
sudo apt-get -y update | ||
sudo apt-get -y install salt-minion | ||
sudo service salt-minion stop | ||
sudo systemctl disable salt-minion | ||
|
||
# Assumes the repository has already been cloned to the working directory | ||
# cd ~ | ||
# git clone -b standalone https://github.com/Bioconductor/bioconductor_salt | ||
|
||
# Set up bioconductor's saltstack | ||
sudo cp -r bioconductor_salt/saltstack/salt /srv | ||
sudo cp -r bioconductor_salt/saltstack/pillar /srv | ||
sudo cp bioconductor_salt/saltstack/minion.d/minion.conf /etc/salt/minion | ||
|
||
sudo mv /srv/pillar/custom/release_standalone.sls /srv/pillar/custom/init.sls | ||
|
||
sudo salt-call --local state.highstate -l debug || true | ||
|
||
# Find R path and check that it works | ||
/home/biocbuild/bbs-*/R/bin/R --version > /tmp/rver | ||
if ! grep -q 'R version' /tmp/rver; then exit 1; fi | ||
|
||
RPATH="$(echo /home/biocbuild/bbs-*/R/bin)" | ||
|
||
echo "export PATH='$PATH:$RPATH'" | sudo tee -a /etc/profile | ||
echo "export PATH='$PATH:$RPATH'" | sudo tee -a /etc/bash.bashrc | ||
|
||
echo "#!/bin/bash" | sudo tee /bbs_r_start | ||
echo "$RPATH/R \"\$@\"" | sudo tee -a /bbs_r_start | ||
|
||
sudo chown biocbuild /bbs_r_start | ||
sudo chmod +x /bbs_r_start | ||
|
||
# Cleanup | ||
# rm -rf /srv /etc/salt | ||
# sudo apt-get -y purge salt-minion | ||
|
||
|