Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker Build Images
scripts
Commits
7b20c567
Commit
7b20c567
authored
2 years ago
by
Henrik Triem
Browse files
Options
Downloads
Patches
Plain Diff
Use different docker & qemu in install-docker-rpm.sh
parent
e3df2c2c
No related branches found
No related tags found
No related merge requests found
Pipeline
#26191
passed
2 years ago
Stage: lint
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install-docker-rpm.sh
+11
-17
11 additions, 17 deletions
install-docker-rpm.sh
with
11 additions
and
17 deletions
install-docker-rpm.sh
+
11
−
17
View file @
7b20c567
...
...
@@ -12,24 +12,18 @@ run() {
(
set
-x
;
"
$@
"
)
}
sudo mkdir
-p
/etc/docker
cat
<<
EOF
|sudo tee /etc/docker/daemon.json >/dev/null
{
"registry-mirrors": ["https://mirror.gcr.io"]
}
EOF
echo
"Activating RHEL 9 subscription"
sudo
subscription-manager register
--name
=
icinga-gitlab-runner-el9
--org
=
7980812
--activationkey
=
GitLab_Chahng0wah
sudo
dnf clean all
sudo
subscription-manager repos
--enable
"codeready-builder-for-rhel-9-x86_64-rpms"
sudo
dnf clean all
echo
"Installing Docker via get.docker.com"
run curl
-LsS
https://get.docker.com
-o
/tmp/get-docker.sh
run sh /tmp/get-docker.sh
echo
"Installing Docker from CentOS"
sudo mkdir
-p
/etc/docker
sudo
dnf config-manager
--add-repo
https://download.docker.com/linux/centos/docker-ce.repo
sudo
dnf
install
docker-ce docker-ce-cli containerd.io docker-compose-plugin
echo
"Installing QEMU and helpers"
run
sudo
dnf update
run
sudo
dnf
install
-y
qemu-user-static binfmt-support
echo
"Activating RHEL 9 subscription"
run
sudo
subscription-manager register
--name
=
icinga-gitlab-runner-el9
--org
=
7980812
--activationkey
=
GitLab_Chahng0wah
run
sudo
dnf clean all
run
sudo
subscription-manager repos
--enable
"codeready-builder-for-rhel-9-x86_64-rpms"
sudo
dnf update
sudo
dnf
install
-y
qemu-kvm
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment