Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
libre.sh
compose.libre.sh
Commits
bdbd94b1
Commit
bdbd94b1
authored
1 year ago
by
Michel Memeteau
Browse files
Options
Downloads
Patches
Plain Diff
Use docker & docker-compose From distro ( debian family)
parent
74ac235e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.linux.sh
+16
-9
16 additions, 9 deletions
install.linux.sh
with
16 additions
and
9 deletions
install.linux.sh
+
16
−
9
View file @
bdbd94b1
#!/bin/bash
#This script is tested on Debian 12
#Current version of libre.sh to be installed
LIBRE_VERSION
=
1.2
# System env vars : can be overrided by a values.env file next to this install file
...
...
@@ -54,6 +56,7 @@ MAIL_USER=
MAIL_PASS
=
MAIL_HOST
=
mail.indie.host
MAIL_PORT
=
587
MAIL_SECURITY
=
# Default admin emails for apps
...
...
@@ -94,7 +97,7 @@ echo "ADMIN_EMAIL=${ADMIN_EMAIL}" >> /etc/environment
# STEP Install Docker
name
=
"docker
-ce
"
name
=
"docker
.io
"
# TODO : Fix a version for docker ?
dpkg
-s
$name
&> /dev/null
...
...
@@ -104,23 +107,27 @@ name="docker-ce"
then
echo
"
$name
not installed"
apt-get update
curl
-fsSL
https://get.docker.com
-o
get-docker.sh
sh get-docker.sh
echo
"-------- Latest docker installed "
# curl -fsSL https://get.docker.com -o get-docker.sh
# sh get-docker.sh
apt
install
-y
$name
echo
"-------- Native docker installed "
else
echo
"
$name
already installed"
fi
# STEP "install docker-compose"
echo
"-------- Install
l
at
est
docker-compose "
echo
"-------- Install
n
at
ive
docker-compose "
# TODO : Fix a version for docker compose ?
mkdir
-p
/opt/bin
&&
\
dockerComposeVersion
=
$(
curl
-s
https://api.github.com/repos/docker/compose/releases/latest|grep tag_name|cut
-d
'"'
-f4
)
&&
\
curl
-L
https://github.com/docker/compose/releases/download/
$dockerComposeVersion
/docker-compose-
`
uname
-s
`
-
`
uname
-m
`
>
/opt/bin/docker-compose
&&
\
chmod
+x /opt/bin/docker-compose
#mkdir -p /opt/bin &&\
#dockerComposeVersion=$(curl -s https://api.github.com/repos/docker/compose/releases/latest|grep tag_name|cut -d'"' -f4) &&\
#curl -L https://github.com/docker/compose/releases/download/$dockerComposeVersion/docker-compose-`uname -s`-`uname -m` > /opt/bin/#docker-compose &&\
#chmod +x /opt/bin/docker-compose
apt
install
-y
docker-compose
# STEP "install git"
...
...
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