-
Notifications
You must be signed in to change notification settings - Fork 8
/
onedock.conf
57 lines (45 loc) · 2.49 KB
/
onedock.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
#
# ONEDock - Docker support for ONE (as VMs)
# Copyright (C) GRyCAP - I3M - UPV
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# This is the URL for the registry
export LOCAL_SERVER=dockerregistry:5000
export LOCAL_SERVER=onedock-tests:5000
# This is a folder in the internal nodes in which oneadmin is able to write. It must be used exclusively by onedock
export ONEDOCK_FOLDER=/var/tmp/one/onedock
# ONEDock removes the images from the internal nodes when the containers are finalized. This is made in order to save storage.
# * Setting this variable to a value different to "yes" prevents from removing these images
export DELETE_LOCAL_IMAGES=yes
# This is the path in which the docker registry will store the docker images in the front-end
export DATASTORE_DATA_PATH=/var/lib/docker-registry/data/
# This is the path for the onedock log file
export ONEDOCK_LOGFILE=/var/log/onedock.log
# The images in the registry are stored as <IMAGE_BASENAME>:<id in ONE>
export IMAGE_BASENAME=dockerimage
# Setting ONEDOCK_DEBUG to "True" sets onedock in "debug" mode and will output a lot of information
export ONEDOCK_DEBUG=True
# Setting ONEDOCK_PRIVILEGED to "True" will start container as privileged (if needed): e.g. to mount a cdrom using loop devices)
export ONEDOCK_PRIVILEGED=False
# Setting ONEDOCK_SKIP_PRIVILEGED to "False" will fail if a container needs to be privileged and ONEDOCK_PRIVILEGED is set to False.
# if it is set to "True", ONEDock will skip the cdrom
export ONEDOCK_SKIP_PRIVILEGED=True
# These are the default values for the network in the containers
export ONEDOCK_DEFAULT_NETMASK=24
# If there is a missing value (i.e. IP address or the Gateway), should use DHCP?
export ONEDOCK_DEFAULT_DHCP=yes
# Override the DNS servers for the containers (if not set, it will use the dns server from the host)
# * there is a problem if the host has only internal IPs (you can also use the context, and the servers in this var will be appended at the end of the sersolv.conf file)
export ONEDOCK_OVERRIDE_DNS="8.8.8.8"