Skip to content

Commit

Permalink
No longer use zdata and take a volume binding in place (for required …
Browse files Browse the repository at this point in the history
…cases)
  • Loading branch information
Soubinan committed Nov 13, 2023
1 parent 5a9bde8 commit ab0f30f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
9 changes: 2 additions & 7 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FROM node:lts-slim as run_base

RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y libpng-dev python3-minimal libvhdi-utils lvm2 cifs-utils nfs-common ntfs-3g tzdata && \
apt-get install -y libpng-dev python3-minimal libvhdi-utils lvm2 cifs-utils nfs-common ntfs-3g && \
apt-get clean

# Build stage
Expand Down Expand Up @@ -51,20 +51,15 @@ RUN mkdir -p /etc/xo-server &&\
ARG XOWEB=latest \
XOSERVER=latest

ENV TZ=UTC

LABEL xo-server=$XOSERVER \
xo-web=$XOWEB

# Send the logs to stdout
RUN ln -sf /proc/1/fd/1 /var/log/xo-server.log && \
ln -sf /proc/1/fd/1 /var/log/syslog.log

RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata

WORKDIR /app/packages/xo-server
VOLUME [ "/etc/xo-server", "/var/lib/xo-server", "/var/lib/xoa-backup" ]
VOLUME [ "/etc/localtime", "/etc/xo-server", "/var/lib/xo-server", "/var/lib/xoa-backup" ]

EXPOSE 80

Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ Is a containerized XEN Orchestra version inspired by [XEN-Orchestra-Docker](http

### Available volumes

* /etc/xo-server: Where the xo-server config lives
* /etc/localtime: Where to sync the container localtime (aligned with the host by default)
* /etc/xo-server: Where the xo-server config lives (contains default configs, needs at least the redis IP:Port info)
* /var/lib/xo-server: Where the xo-server data lives
* /var/lib/xoa-backup: Where the xo-backup data lives

### Available Environments variables

* TZ: Time zone (default: UTC)

### Execute

```bash
Expand Down

0 comments on commit ab0f30f

Please sign in to comment.