mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 23:37:18 +00:00
Use a volume for /root and tmpfs for /tun and /tmp
This commit is contained in:
parent
fabc7887d9
commit
c04347ac3e
@ -24,6 +24,9 @@ RUN npm run webpack
|
||||
RUN PATH=$(pwd)/node_modules/.bin/:$PATH electron-builder --dir --config.asar=false --config.npmRebuild=false --config.nodeGypRebuild=false
|
||||
|
||||
FROM alexisresinio/aarch64-debian-bejs:latest
|
||||
# Etcher configuration
|
||||
COPY etcher-pro-config.json /usr/src/app/
|
||||
|
||||
COPY --from=builder /usr/src/app/dist/linux-arm64-unpacked/resources/app /usr/src/app
|
||||
COPY --from=builder /usr/src/app/node_modules/electron/ /usr/src/app/node_modules/electron
|
||||
WORKDIR /usr/src/app/node_modules/.bin
|
||||
@ -38,5 +41,4 @@ RUN mkdir /tmp/media
|
||||
ENV BALENA_ELECTRONJS_MOUNTS_ROOT=/tmp/media
|
||||
ENV BALENA_ELECTRONJS_CONSTRAINT_PATH=/tmp/media
|
||||
|
||||
# Etcher configuration
|
||||
COPY etcher-pro-config.json /root/.config/balena-etcher/config.json
|
||||
CMD cp -n /usr/src/app/etcher-pro-config.json /root/.config/balena-etcher/config.json && xinit
|
||||
|
@ -1,19 +1,25 @@
|
||||
version: '2'
|
||||
volumes:
|
||||
data:
|
||||
influxdb:
|
||||
grafana:
|
||||
etcher_pki:
|
||||
etcher_cache:
|
||||
etcher_bash_history:
|
||||
etcher_config_electron:
|
||||
etcher_config_balena_etcher:
|
||||
services:
|
||||
influxdb:
|
||||
restart: always
|
||||
build: ./etcher-pro-monitoring/influxdb
|
||||
network_mode: host
|
||||
volumes:
|
||||
- 'data:/data'
|
||||
- 'influxdb:/data'
|
||||
grafana:
|
||||
restart: always
|
||||
build: ./etcher-pro-monitoring/grafana
|
||||
network_mode: host
|
||||
volumes:
|
||||
- 'data:/data'
|
||||
- 'grafana:/data'
|
||||
environment:
|
||||
- 'GF_SERVER_HTTP_PORT=80'
|
||||
- 'GF_PATHS_PROVISIONING=/usr/src/app/provisioning'
|
||||
@ -38,3 +44,12 @@ services:
|
||||
network_mode: host
|
||||
labels:
|
||||
io.balena.features.dbus: 1
|
||||
volumes:
|
||||
- 'etcher_pki:/root/.pki'
|
||||
- 'etcher_cache:/root/.cache'
|
||||
- 'etcher_bash_history:/root/.bash_history'
|
||||
- 'etcher_config_electron:/root/.config/Electron'
|
||||
- 'etcher_config_balena_etcher:/root/.config/balena-etcher'
|
||||
tmpfs:
|
||||
- /run
|
||||
- /tmp
|
||||
|
Loading…
x
Reference in New Issue
Block a user