Skip to content

Commit

Permalink
Changed docker repository
Browse files Browse the repository at this point in the history
This changes the repository for the docker images
  • Loading branch information
mwetter committed Nov 21, 2023
1 parent cf6d6cd commit 9222d9d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:

env:
global:
- DOCKER_REPONAME=lbnlblum
- [email protected]
- OMC_VERSION=ubuntu-2204-omc:1.22.0_dev-41-g8a5b18f-1
- DYMOLA_VERSION=travis_ubuntu-2004_dymola:2023x-x86_64_rev-1
Expand All @@ -44,11 +45,11 @@ env:
before_install:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- if [[ "$TEST_ARG" == *test-dymola* || "$TEST_ARG" == *test-bestest* ]]; then
docker pull "$DOCKER_USERNAME"/${DYMOLA_VERSION};
docker pull "$DOCKER_REPONAME"/${DYMOLA_VERSION};
cp IBPSA/Resources/Scripts/travis/dymola/dymola $HOME/bin/;
fi;
- if [[ "$TEST_ARG" == *test-openmodelica* ]]; then
docker pull "$DOCKER_USERNAME"/${OMC_VERSION};
docker pull "$DOCKER_REPONAME"/${OMC_VERSION};
cp IBPSA/Resources/Scripts/travis/omc/omc $HOME/bin/omc;
fi;

Expand Down
2 changes: 1 addition & 1 deletion IBPSA/Resources/Scripts/travis/dymola/dymola
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ docker run \
--detach=false \
--rm \
-v ${sha_dir}:/mnt/shared \
${DOCKER_USERNAME}/${DYMOLA_VERSION} /bin/bash -c \
${DOCKER_REPONAME}/${DYMOLA_VERSION} /bin/bash -c \
"cd /mnt/shared/${bas_nam} && \
dymola ${arg_lis}"
4 changes: 2 additions & 2 deletions IBPSA/Resources/Scripts/travis/omc/omc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#################################################
set -e
IMG_NAME=${OMC_VERSION}
DOCKER_USERNAME=michaelwetter
DOCKER_REPONAME=lbnlblum

# Function declarations
function create_mount_command()
Expand Down Expand Up @@ -100,7 +100,7 @@ docker run \
-v ${sha_dir}:/mnt/shared \
--rm \
--workdir="/mnt/shared/${bas_nam}" \
${DOCKER_USERNAME}/${IMG_NAME} /bin/bash -c \
${DOCKER_REPONAME}/${IMG_NAME} /bin/bash -c \
"export MODELICAPATH=${DOCKER_MODELICAPATH} && \
omc ${arg_lis} && \
rm -rf spawn-* && \
Expand Down

0 comments on commit 9222d9d

Please sign in to comment.