Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Timothee Gosselin
compose.libre.sh
Commits
12b7b7ed
Commit
12b7b7ed
authored
8 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Move web-net to its own unit file
parent
b004ea43
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
unit-files/web-net.service
+11
-0
11 additions, 0 deletions
unit-files/web-net.service
user_data
+4
-17
4 additions, 17 deletions
user_data
with
15 additions
and
17 deletions
unit-files/web-net.service
0 → 100644
+
11
−
0
View file @
12b7b7ed
[Unit]
Description
=
Create lb_web network
Requires
=
docker.service
After
=
docker.service
[Service]
Type
=
oneshot
RemainAfterExit
=
true
ExecStart
=
/usr/bin/docker network create lb_web
ExecStop
=
/usr/bin/docker network rm lb_web
[Install]
WantedBy
=
local.target
This diff is collapsed.
Click to expand it.
user_data
+
4
−
17
View file @
12b7b7ed
...
...
@@ -72,11 +72,11 @@ coreos:
url=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r \'.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))\') &&\
curl -L $url > /opt/bin/docker-compose &&\
chmod +x /opt/bin/docker-compose'
- name: install-
indiehosters
.service
- name: install-
libresh
.service
command: start
content: |
[Unit]
Description=Install
IndieHosters
Description=Install
libre.sh
[Service]
Type=oneshot
RemainAfterExit=true
...
...
@@ -85,19 +85,6 @@ coreos:
mkdir /{data,system} &&\
mkdir /data/trash &&\
cp /libre.sh/unit-files/* /etc/systemd/system && systemctl daemon-reload &&\
systemctl enable web-net.service &&\
systemctl start web-net.service &&\
cp /libre.sh/utils/* /opt/bin/'
- name: web-net.service
enable: true
command: start
content: |
[Unit]
Description=Create lb_web network
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/bin/docker network create lb_web
ExecStop=/usr/bin/docker network rm lb_web
[Install]
WantedBy=local.target
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