-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
113 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Sample file for driving an extra printer | ||
# | ||
# Copy this file to .env-<printer name> -- e.g. .env.extra | ||
# To start an additional instance run: | ||
# docker-compose --project-name extra --env-file .env-extra up -d | ||
# or use the convenience script: | ||
# docker-compose-multi.sh extra up -d | ||
|
||
# Architecture -- same as in your main .env file | ||
OP_MACHINE_NAME=raspberrypi3 | ||
|
||
# Webcam configuration | ||
# Ensure you use only one Raspberry Pi Camera for all instances. | ||
# Supported configurations: | ||
# - One Raspberry Pi Camera, One USB Camera | ||
# - Two USB cameras | ||
# If you do not have a camera, set "WEBCAM_START=false" | ||
WEBCAM_START=false | ||
WEBCAM_INPUT=input_uvc.so -d /dev/video0 -r 640x480 -fps 5 | ||
|
||
# Listen to the following ports -- Must be different for every instances! | ||
HTTP_PORT=8080 | ||
HTTPS_PORT=8443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
# Wrapper to docker-compose for multiple environemnts | ||
|
||
if [[ $# -lt 1 ]]; then | ||
echo "Usage: $0 <env> <docker-compose args>" >&2 | ||
exit 1 | ||
fi | ||
|
||
environ="$1" | ||
shift | ||
env_file=".env-${environ}" | ||
|
||
if [[ ! -f "${env_file}" ]]; then | ||
echo "$0: environment file ${env_file} does not exist" >&2 | ||
exit 1 | ||
fi | ||
|
||
docker-compose --project-name "${environ}" --env-file "${env_file}" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters