Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CICD 2022
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Antoine Gaudron-Desjardins
CICD 2022
Commits
2750c6a7
Commit
2750c6a7
authored
2 years ago
by
Florentin Labelle
Browse files
Options
Downloads
Patches
Plain Diff
Add deploy instructions
parent
92af420e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
deploy/calculator.service
+12
-0
12 additions, 0 deletions
deploy/calculator.service
deploy/setup.md
+29
-0
29 additions, 0 deletions
deploy/setup.md
with
41 additions
and
0 deletions
deploy/calculator.service
0 → 100644
+
12
−
0
View file @
2750c6a7
Description
=
CiCd.
After
=
network.target
StartLimitIntervalSec
=
0
[Service]
Type
=
simple
ExecStart
=
python3 -m uvicorn server:app --port 80 --host 0.0.0.0
User
=
root
WorkingDirectory
=
/var/www/cicd/calculator
[Install]
WantedBy
=
multi-user.target
This diff is collapsed.
Click to expand it.
deploy/setup.md
0 → 100644
+
29
−
0
View file @
2750c6a7
# Setup la vm pour notre calculatrice
## Clone le repo
```
bash
mkdir
-p
/var/www
cd
/var/www
git clone https://gitlab.viarezo.fr/<login>/cicd.git
```
## Installe les dépendances
```
bash
cd
cicd
pip
install
-r
requirements.txt
```
## Ajoute le service
```
bash
cp
deploy/calculator.service /etc/systemd/system/
systemctl daemon-reload
systemctl
enable
calculator
systemctl start calculator
```
## Dans ton navigateur
-
"http://ip-de-la-vm:80/"
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