Unverified Commit d4d667c1 authored by JR's avatar JR Committed by GitHub
Browse files

modified docker files for tzdata package compatibility (#1376)

parent 2d46a056
......@@ -4,7 +4,7 @@ services:
container_name: ravada-mysql
volumes:
- "/opt/ravada/mysql:/var/lib/mysql"
- "/etc/localtime:/etc/localtime:ro"
#- "/etc/localtime:/etc/localtime:ro"
- "/opt/ravada/log:/var/log/mysql"
networks:
- ravada_network
......@@ -16,8 +16,8 @@ services:
ravada-front:
container_name: ravada-front
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
#- "/etc/timezone:/etc/timezone:ro"
#- "/etc/localtime:/etc/localtime:ro"
- "~/src/ravada:/ravada"
- "/opt/ravada/screenshots:/var/www/img/screenshots"
ports:
......@@ -27,9 +27,9 @@ services:
networks:
- ravada_network
#By default download from dockerhub
image: ravada/front
#image: ravada/front
#If you want to local build
#build: dockers/front/.
build: dockers/front/.
restart: unless-stopped
depends_on:
......@@ -43,20 +43,20 @@ services:
- "/opt/ravada/images:/var/lib/libvirt/images"
- "/opt/ravada/screenshots:/var/www/img/screenshots"
- "/opt/ravada/etc:/etc/libvirt/qemu"
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
#- "/etc/timezone:/etc/timezone:ro"
#- "/etc/localtime:/etc/localtime:ro"
- "~/src/ravada:/ravada"
ports:
- "5900-5938:5900-5938"
#- "5900-5938:5900-5938"
#Unexposed 5939 Teamviewer port
- "5940-5999:5940-5999"
- "55900-55999:55900-55999"
networks:
- ravada_network
#By default download from dockerhub
image: ravada/back
#image: ravada/back
#If you want to local build
#build: dockers/back/.
build: dockers/back/.
privileged: true
restart: unless-stopped
......
......@@ -14,7 +14,10 @@ RUN apt-get update \
liblwp-useragent-determined-perl libvirt-clients supervisor net-tools openssh-client apt-utils curl libpbkdf2-tiny-perl \
libio-stringy-perl libvirt-daemon-system libvirt-clients netcat-openbsd qemu-kvm qemu-utils iproute2 wget bridge-utils firewalld dnsmasq iptables ebtables \
libnet-openssh-perl libdatetime-format-dateparse-perl \
&& apt-get clean \
&& apt-get clean
ENV TZ=Europe/Madrid
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata \
&& rm -rf /var/lib/apt/lists/*
RUN echo "listen_tls = 0" >> /etc/libvirt/libvirtd.conf \
......
......@@ -13,8 +13,12 @@ RUN apt-get update \
libfile-rsync-perl libdate-calc-perl libparallel-forkmanager-perl libdatetime-perl libencode-locale-perl netcat-openbsd \
libio-stringy-perl libvirt-clients liblwp-useragent-determined-perl supervisor net-tools apt-utils lsof mysql-client \
curl bash vim wget libnet-openssh-perl libdatetime-format-dateparse-perl \
&& apt-get clean \
&& apt-get clean
ENV TZ=Europe/Madrid
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata \
&& rm -rf /var/lib/apt/lists/*
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir -p /var/log/supervisor \
&& mkdir -p /run/sshd
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment