Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Shepherd Enterprise
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Subconscious Compute (Open)
Shepherd Enterprise
Commits
40a29d61
Commit
40a29d61
authored
11 months ago
by
Vipul
Browse files
Options
Downloads
Patches
Plain Diff
Onprem release test
parent
05d8374b
No related branches found
No related tags found
1 merge request
!9
Onprem release test
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yml
+3
-5
3 additions, 5 deletions
docker-compose.yml
setup-debian.sh
+25
-9
25 additions, 9 deletions
setup-debian.sh
with
28 additions
and
14 deletions
docker-compose.yml
+
3
−
5
View file @
40a29d61
...
@@ -67,8 +67,6 @@ services:
...
@@ -67,8 +67,6 @@ services:
-
reports-net
-
reports-net
env_file
:
env_file
:
-
./.env
-
./.env
extra_hosts
:
-
"
host.docker.internal:host-gateway"
volumes
:
volumes
:
-
./logs/reports-acumulator:/logs
-
./logs/reports-acumulator:/logs
restart
:
unless-stopped
restart
:
unless-stopped
...
@@ -81,8 +79,6 @@ services:
...
@@ -81,8 +79,6 @@ services:
-
reports-net
-
reports-net
env_file
:
env_file
:
-
./.env
-
./.env
extra_hosts
:
-
"
host.docker.internal:host-gateway"
restart
:
unless-stopped
restart
:
unless-stopped
# Running on port 3030
# Running on port 3030
...
@@ -93,6 +89,8 @@ services:
...
@@ -93,6 +89,8 @@ services:
-
reports-net
-
reports-net
env_file
:
env_file
:
-
./.env
-
./.env
ports
:
-
3030:3030
depends_on
:
depends_on
:
-
reports_cruncher
-
reports_cruncher
volumes
:
volumes
:
...
@@ -210,7 +208,7 @@ services:
...
@@ -210,7 +208,7 @@ services:
-
./.env
-
./.env
command
:
[
"
-ca"
,
"
/depot/ca.pem"
,
command
:
[
"
-ca"
,
"
/depot/ca.pem"
,
"
-api"
,
"
nanomdm"
,
"
-api"
,
"
nanomdm"
,
"
-webhook-url"
,
"
http://shepherd_mdm:8000
/mdm/osx/webhook"
,
"
-webhook-url"
,
"
${SUBCOM_ADM_URL}
/mdm/osx/webhook"
,
"
-storage"
,
"
pgsql"
,
"
-storage"
,
"
pgsql"
,
"
-dsn"
,
$DATABASE_URL
,
"
-dsn"
,
$DATABASE_URL
,
"
-debug"
,
"
-debug"
,
...
...
This diff is collapsed.
Click to expand it.
setup-debian.sh
+
25
−
9
View file @
40a29d61
...
@@ -167,9 +167,9 @@ setup_git() {
...
@@ -167,9 +167,9 @@ setup_git() {
sudo
git fetch origin main
sudo
git fetch origin main
if
[
"
$(
git rev-parse HEAD
)
"
!=
"
$(
git rev-parse FETCH_HEAD
)
"
]
;
then
if
[
"
$(
git rev-parse HEAD
)
"
!=
"
$(
git rev-parse FETCH_HEAD
)
"
]
;
then
# Ignore all local changes(comitted & non-comitted)
# Ignore all local changes(comitted & non-comitted)
git reset
--hard
origin/main
sudo
git reset
--hard
origin/main
# TODO: Change this to main branch
# TODO: Change this to main branch
git pull origin main
--force
sudo
git pull origin main
--force
echo
"Repository updated. Applying updates..."
echo
"Repository updated. Applying updates..."
# Ensure the scripts are executable after a potential update
# Ensure the scripts are executable after a potential update
chmod
+x
"
$SCRIPT_PATH
"
chmod
+x
"
$SCRIPT_PATH
"
...
@@ -238,18 +238,34 @@ setup_env() {
...
@@ -238,18 +238,34 @@ setup_env() {
echo
"
$BASIC_BEARER_TOKEN
"
>
"
$ENV_ALERTMANAGER_SECRET_PATH
"
echo
"
$BASIC_BEARER_TOKEN
"
>
"
$ENV_ALERTMANAGER_SECRET_PATH
"
# Update this to rollout new update
# Update this to rollout new update
update_env_variable
"WEBZERO_VERSION"
"0.4.
8
"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"WEBZERO_VERSION"
"0.4.
10
"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"REPORTS_ACCUMULATOR_VERSION"
"0.
1
.0"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"REPORTS_ACCUMULATOR_VERSION"
"0.
2
.0"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"REPORTS_CRUNCHER_VERSION"
"0.
1
.0"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"REPORTS_CRUNCHER_VERSION"
"0.
2
.0"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"REPORTS_ENGINE_VERSION"
"0.
2
.0"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"REPORTS_ENGINE_VERSION"
"0.
3
.0"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"TAG"
"0.5.1"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"TAG"
"0.5.1"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"ONEAPI_VERSION"
"2.1.
3
"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"ONEAPI_VERSION"
"2.1.
4
"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"NANOMDM_SCEP_URL"
"http://0.0.0.0:8080"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"NANOMDM_SCEP_URL"
"http://0.0.0.0:8080"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"NANOMDM_MDM_URL"
"http://0.0.0.0:9001"
"
$ENV_SHEPHERD_PATH
"
update_env_variable
"NANOMDM_MDM_URL"
"http://0.0.0.0:9001"
"
$ENV_SHEPHERD_PATH
"
echo
"NANODEP_URL="
>>
"
$ENV_CLIENT_PATH
"
# accessed by reportsengine
echo
"NANODEP_BASIC_AUTH="
>>
"
$ENV_CLIENT_PATH
"
update_env_variable
"REPORTS_CRUNCHER_API"
"http://reports_cruncher:3000"
"
$ENV_SHEPHERD_PATH
"
# accessed by dashboard
update_env_variable
"REPORTS_URL"
"http://0.0.0.0:3030"
"
$ENV_SHEPHERD_PATH
"
# NOTE: Only need to be updated once
# ADM required variables
# echo "NANODEP_URL=" >> "$ENV_CLIENT_PATH"
# echo "NANODEP_BASIC_AUTH=" >> "$ENV_CLIENT_PATH"
# Reports required variables
echo
"SENTRY_URL="
>>
"
$ENV_SHEPHERD_PATH
"
echo
"SENTRY_ENV="
>>
"
$ENV_SHEPHERD_PATH
"
# OneAPI required variables
echo
"NTFY_WS_URL=wss://ntfy.sh"
>>
"
$ENV_SHEPHERD_PATH
"
echo
"NTFY_AUTH_TOKEN=tk_9tsigcvm13h4de81w3o19zf30ayxa"
>>
"
$ENV_SHEPHERD_PATH
"
echo
"NTFY_API_URL=https://ntfy.sh"
>>
"
$ENV_SHEPHERD_PATH
"
# Caddy file replace
# Caddy file replace
echo
"Generating caddyfile..."
echo
"Generating caddyfile..."
...
...
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