Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Ensure upstream repo is used for docker (#2151)
Browse files Browse the repository at this point in the history
* Ensure upstream repo is used for docker

Fixes #2015.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>

* don't add epel

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
  • Loading branch information
jgrund authored Aug 13, 2020
1 parent a8c1156 commit 4e5ade0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions vagrant/scripts/install_iml_docker_repouri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ EOF
if [[ -n $REPO_URI ]];
then
cat <<EOF >> /etc/yum.repos.d/manager-for-lustre.repo
[manager-for-lustre]
name=manager-for-lustre
baseurl=$REPO_URI
Expand All @@ -33,6 +34,30 @@ docker swarm init --advertise-addr=127.0.0.1 --listen-addr=127.0.0.1
echo "lustre" > /etc/iml-docker/setup/password
docker secret create iml_pw /etc/iml-docker/setup/password

cat <<EOF > /etc/iml-docker/setup/base.repo
[managerforlustre-manager-for-lustre-devel]
name=Copr repo for manager-for-lustre-devel owned by managerforlustre
baseurl=https://copr-be.cloud.fedoraproject.org/results/managerforlustre/manager-for-lustre-devel/epel-7-\$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/managerforlustre/manager-for-lustre-devel/pubkey.gpg
repo_gpgcheck=0
enabled=1
EOF

if [[ -n $REPO_URI ]];
then
cat <<EOF >> /etc/iml-docker/setup/base.repo
[manager-for-lustre]
name=manager-for-lustre
baseurl=$REPO_URI
enabled=1
gpgcheck=0
EOF
fi

cat <<EOF > /etc/iml-docker/docker-compose.overrides.yml
version: "3.7"
Expand Down

0 comments on commit 4e5ade0

Please sign in to comment.