Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scaleway instances template
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
systemes-dinformation
alpha
pocs
Cloud Machinist
cloud machinist templates
scaleway instances template
Compare revisions
7714dbd346d688fed35b5d5545524c544289490a to main
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-instances-template
Select target project
No results found
main
Select Git revision
Branches
ansible/update
main
Swap
Target
systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-attack-instances-template
Select target project
systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-attack-instances-template
systemes-dinformation/alpha/projects/labo-rust
systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-instances-template
systemes-dinformation/alpha/projects/api-table
systemes-dinformation/alpha/pocs/caldera
hnouts/scaleway-instances-template
bdumont/scaleway-instances-template
jrincker/scaleway-instances-template
8 results
7714dbd346d688fed35b5d5545524c544289490a
Select Git revision
Branches
ansible/update
develop
main
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
feat: updated documentation adding context to urls
· 35f843b2
Nathan RODET
authored
7 months ago
35f843b2
Add LICENSE
· c42654a4
Nathan RODET
authored
7 months ago
c42654a4
fix: added condition to bash script, to add the case of unique instance deployment
· 7dcf7710
Nathan Rodet
authored
5 months ago
7dcf7710
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
LICENSE
+661
-0
661 additions, 0 deletions
LICENSE
README.md
+2
-0
2 additions, 0 deletions
README.md
instance-scripts/config-files/atrium.yaml
+2
-2
2 additions, 2 deletions
instance-scripts/config-files/atrium.yaml
instance-scripts/scripts/atrium.sh
+12
-1
12 additions, 1 deletion
instance-scripts/scripts/atrium.sh
with
677 additions
and
3 deletions
LICENSE
0 → 100644
View file @
7dcf7710
This diff is collapsed.
Click to expand it.
README.md
View file @
7dcf7710
...
...
@@ -55,6 +55,8 @@ After deployment, each resource can be accessed through HTTPS, URL depends on th
-
**TTYD :**
`https://terminal-<INSTANCE_COUNT>.<ENVIRONMENT>-<INSTANCE_COUNT>.<PROJECT_DOMAIN>.com/`
-
**Atrium :**
`https://<ENVIRONMENT>-<INSTANCE_COUNT>.<PROJECT_DOMAIN>.com/`
The instance count part of the urls should be removed if there is only one instance deployed.
**Example :**
-
https://terminal-1.rust-1.daag.alpha.grandlyon.com/
-
https://rust-1.daag.alpha.grandlyon.com/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
instance-scripts/config-files/atrium.yaml
View file @
7dcf7710
...
...
@@ -9,7 +9,7 @@ apps: # optional : applications served by atrium
icon
:
terminal
color
:
4292030255
is_proxy
:
true
host
:
terminal
-
%atrium_count_index%
host
:
terminal%
-
atrium_count_index%
target
:
localhost:8081
secured
:
true
login
:
admin
...
...
@@ -20,4 +20,4 @@ users:
-
login
:
admin
password
:
%
user_password_hash%
roles
:
-
ADMINS
\ No newline at end of file
-
ADMINS
This diff is collapsed.
Click to expand it.
instance-scripts/scripts/atrium.sh
View file @
7dcf7710
...
...
@@ -5,6 +5,7 @@
#
export
USER_PASSWORD_HASH
=
$(
echo
-n
"
$(
scw-userdata user_password
)
"
| argon2
"
$(
echo
$RANDOM
|
md5sum
|
head
-c
12
)
"
-id
-l
32
-e
)
export
ATRIUM_COUNT_INDEX
=
$(
scw-userdata atrium_count_index
)
mkdir
-p
/root/atrium/data
&&
mkdir
-p
/root/atrium/letsencrypt_cache
curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinist/cloud-machinist-templates/scaleway-instances-template/-/raw/main/instance-scripts/config-files/atrium.yaml
-o
root/atrium/atrium.yaml
...
...
@@ -12,7 +13,14 @@ curl https://forge.grandlyon.com/systemes-dinformation/alpha/pocs/cloud-machinis
sed
-i
"s|%atrium_hostname%|
$(
scw-userdata atrium_hostname
)
|g"
/root/atrium/atrium.yaml
sed
-i
"s|%project_domain%|
$(
scw-userdata project_domain
)
|g"
/root/atrium/atrium.yaml
sed
-i
"s|%atrium_letsencrypt_email%|
$(
scw-userdata atrium_letsencrypt_email
)
|g"
/root/atrium/atrium.yaml
sed
-i
"s|%atrium_count_index%|
$(
scw-userdata atrium_count_index
)
|g"
/root/atrium/atrium.yaml
if
[
"
$ATRIUM_COUNT_INDEX
"
-eq
0
]
;
then
sed
-i
"s|%-atrium_count_index%||g"
/root/atrium/atrium.yaml
echo
"test1"
else
# Apply this if the value is greater than 0
sed
-i
"s|%-atrium_count_index%|-
$(
scw-userdata atrium_count_index
)
|g"
/root/atrium/atrium.yaml
echo
"test2"
fi
sed
-i
"s|%user_password_hash%|
$USER_PASSWORD_HASH
|g"
/root/atrium/atrium.yaml
sed
-i
"s|%user_password%|
$(
scw-userdata user_password
)
|g"
/root/atrium/atrium.yaml
chown
-Rf
1000:1000 /root/atrium
...
...
@@ -29,3 +37,6 @@ docker run -d --name atrium \
-v
/root/atrium/data:/app/data nicolaspernoud/atrium:latest
This diff is collapsed.
Click to expand it.