mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 23:42:29 +00:00
Add supervisor docker-compose
This will allow the supervisor service to be correctly named on the API Change-type: patch
This commit is contained in:
parent
3237c03f00
commit
68d60d8aaa
@ -1,5 +1,5 @@
|
||||
name: balena-supervisor
|
||||
description: 'Balena Supervisor: balena''s agent on devices.'
|
||||
description: "Balena Supervisor: balena's agent on devices."
|
||||
joinable: false
|
||||
type: sw.application
|
||||
version: 12.10.14
|
||||
|
@ -71,10 +71,10 @@ defaults: &defaults
|
||||
export TAG=$(echo ${CIRCLE_BRANCH} | sed 's/[^a-z0-9A-Z_.-]/-/g')
|
||||
export ARCH=${ARCH}
|
||||
export PROJECT_NAME=${ARCH}-supervisor
|
||||
export SERVICE_NAME=main
|
||||
export SERVICE_NAME=balena-supervisor
|
||||
# start the build for this architecture
|
||||
bash automation/build.sh
|
||||
if [ "${CIRCLE_BRANCH}" = "master" ] && [ "${AUTHOR}" = "balena-ci"] && [ "${COMMITTER}" = "versionbot@balena.io" ] && [ "${DEPLOY_TO_STAGING}" = "true" ]; then
|
||||
if [ "${CIRCLE_BRANCH}" = "master" ] && [ "${AUTHOR}" = "balena-ci" ] && [ "${COMMITTER}" = "versionbot@balena.io" ] && [ "${DEPLOY_TO_STAGING}" = "true" ]; then
|
||||
echo "Deploying to balena API (staging)"
|
||||
BALENARC_BALENA_URL=$STAGING_API_ENDPOINT balena login --token $STAGING_API_TOKEN
|
||||
# Create a draft release first in case the second step fails
|
||||
@ -90,7 +90,7 @@ defaults: &defaults
|
||||
# Cleanup credentials just in case
|
||||
rm ~/.balena/token
|
||||
fi
|
||||
if [ "${CIRCLE_BRANCH}" = "master" ] && [ "${AUTHOR}" = "balena-ci"] && [ "${COMMITTER}" = "versionbot@balena.io" ] && [ "${DEPLOY_TO_PRODUCTION}" = "true" ]; then
|
||||
if [ "${CIRCLE_BRANCH}" = "master" ] && [ "${AUTHOR}" = "balena-ci" ] && [ "${COMMITTER}" = "versionbot@balena.io" ] && [ "${DEPLOY_TO_PRODUCTION}" = "true" ]; then
|
||||
echo "Deploying to balena API (production)"
|
||||
BALENARC_BALENA_URL=$PRODUCTION_API_ENDPOINT balena login --token $PRODUCTION_API_TOKEN
|
||||
# Create a draft release first in case the second step fails
|
||||
|
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
@ -0,0 +1,16 @@
|
||||
version: '2.1'
|
||||
|
||||
services:
|
||||
# This service can only be named `main` or `balena-supervisor` as older
|
||||
# devices will keep relying on the `/v6/supervisor_release` endpoint that
|
||||
# identifies the supervisor image by that service name.
|
||||
balena-supervisor:
|
||||
build: ./
|
||||
privileged: true
|
||||
tty: true
|
||||
restart: always
|
||||
network_mode: host
|
||||
labels:
|
||||
io.balena.features.balena-api: '1'
|
||||
io.balena.features.dbus: '1'
|
||||
io.balena.features.balena-socket: '1'
|
Loading…
Reference in New Issue
Block a user