Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DCSG2003
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
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
Raphael Storm Larsen
DCSG2003
Commits
6790ddb0
Commit
6790ddb0
authored
2 years ago
by
Raphael Storm Larsen
Browse files
Options
Downloads
Patches
Plain Diff
Fiex initworker docker installation
parent
be379d78
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
configuration/initWorker.sh
+6
-12
6 additions, 12 deletions
configuration/initWorker.sh
with
6 additions
and
12 deletions
configuration/initWorker.sh
+
6
−
12
View file @
6790ddb0
...
@@ -12,18 +12,12 @@ sudo apt-get -y install \
...
@@ -12,18 +12,12 @@ sudo apt-get -y install \
git
\
git
\
gnupg
\
gnupg
\
lsb-release
lsb-release
apt-get
-y
update
# Add Docker’s official GPG key:
apt-get
-y
update
apt-get
-y
update
mkdir
-p
/etc/apt/keyrings
curl
-fsSL
https://download.docker.com/linux/ubuntu/gpg |
sudo
gpg
--dearmor
-o
/etc/apt/keyrings/docker.gpg
# Use the following command to set up the repository:
# Use the following command to set up the repository:
echo
\
curl
-fsSL
https://download.docker.com/linux/ubuntu/gpg |
sudo
apt-key add -
"deb [arch=
$(
dpkg
--print-architecture
)
signed-by=/etc/apt/keyrings/docker.gpg
] https://download.docker.com/linux/ubuntu
\
add-apt-repository
"deb [arch=amd64
] https://download.docker.com/linux/ubuntu
$(
lsb_release
-cs
)
stable"
$(
lsb_release
-cs
)
stable"
|
sudo tee
/etc/apt/sources.list.d/docker.list
>
/dev/null
apt-get
-y
update
# Fix potentially broken mask
# Fix potentially broken mask
chmod
a+r /etc/apt/keyrings/docker.gpg
chmod
a+r /etc/apt/keyrings/docker.gpg
...
@@ -35,9 +29,6 @@ apt-get -y update
...
@@ -35,9 +29,6 @@ apt-get -y update
# Install Docker Engine, containerd, and Docker Compose.
# Install Docker Engine, containerd, and Docker Compose.
#sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
#sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
# Add to docker swarm cluster as worker
#docker swarm join --token SWMTKN-1-2b8s5pumm6c5liipvnp0gyv613hm9u5r6c567xjirtce1ng8bu-0kyd30qzbbnuvxi4p8c724ft8 192.168.133.95:2377
# Fix potentially broken docker build
# Fix potentially broken docker build
echo
"{
\"
insecure-registries
\"
: [
\"
192.168.128.23:5000
\"
] }"
>
/etc/docker/daemon.json
echo
"{
\"
insecure-registries
\"
: [
\"
192.168.128.23:5000
\"
] }"
>
/etc/docker/daemon.json
...
@@ -46,6 +37,9 @@ systemctl disable docker
...
@@ -46,6 +37,9 @@ systemctl disable docker
systemctl disable docker.service
systemctl disable docker.service
systemctl disable docker.socket
systemctl disable docker.socket
# Add to docker swarm cluster as worker
#docker swarm join --token SWMTKN-1-2b8s5pumm6c5liipvnp0gyv613hm9u5r6c567xjirtce1ng8bu-0kyd30qzbbnuvxi4p8c724ft8 192.168.133.95:2377
# Sync time using NTP
# Sync time using NTP
apt-get
install
-y
ntpdate
apt-get
install
-y
ntpdate
ntpdate
-b
ntp.justervesenet.no
ntpdate
-b
ntp.justervesenet.no
...
...
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