mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-13 06:16:31 +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
|
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
|
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/dist/linux-arm64-unpacked/resources/app /usr/src/app
|
||||||
COPY --from=builder /usr/src/app/node_modules/electron/ /usr/src/app/node_modules/electron
|
COPY --from=builder /usr/src/app/node_modules/electron/ /usr/src/app/node_modules/electron
|
||||||
WORKDIR /usr/src/app/node_modules/.bin
|
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_MOUNTS_ROOT=/tmp/media
|
||||||
ENV BALENA_ELECTRONJS_CONSTRAINT_PATH=/tmp/media
|
ENV BALENA_ELECTRONJS_CONSTRAINT_PATH=/tmp/media
|
||||||
|
|
||||||
# Etcher configuration
|
CMD cp -n /usr/src/app/etcher-pro-config.json /root/.config/balena-etcher/config.json && xinit
|
||||||
COPY etcher-pro-config.json /root/.config/balena-etcher/config.json
|
|
||||||
|
@ -1,19 +1,25 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
influxdb:
|
||||||
|
grafana:
|
||||||
|
etcher_pki:
|
||||||
|
etcher_cache:
|
||||||
|
etcher_bash_history:
|
||||||
|
etcher_config_electron:
|
||||||
|
etcher_config_balena_etcher:
|
||||||
services:
|
services:
|
||||||
influxdb:
|
influxdb:
|
||||||
restart: always
|
restart: always
|
||||||
build: ./etcher-pro-monitoring/influxdb
|
build: ./etcher-pro-monitoring/influxdb
|
||||||
network_mode: host
|
network_mode: host
|
||||||
volumes:
|
volumes:
|
||||||
- 'data:/data'
|
- 'influxdb:/data'
|
||||||
grafana:
|
grafana:
|
||||||
restart: always
|
restart: always
|
||||||
build: ./etcher-pro-monitoring/grafana
|
build: ./etcher-pro-monitoring/grafana
|
||||||
network_mode: host
|
network_mode: host
|
||||||
volumes:
|
volumes:
|
||||||
- 'data:/data'
|
- 'grafana:/data'
|
||||||
environment:
|
environment:
|
||||||
- 'GF_SERVER_HTTP_PORT=80'
|
- 'GF_SERVER_HTTP_PORT=80'
|
||||||
- 'GF_PATHS_PROVISIONING=/usr/src/app/provisioning'
|
- 'GF_PATHS_PROVISIONING=/usr/src/app/provisioning'
|
||||||
@ -38,3 +44,12 @@ services:
|
|||||||
network_mode: host
|
network_mode: host
|
||||||
labels:
|
labels:
|
||||||
io.balena.features.dbus: 1
|
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