Skip to content

Commit

Permalink
Fix #73 Added the ability build a specific version (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
VyacheslavSemin authored Feb 10, 2023
1 parent 8c48fe3 commit 4ae11e3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ COMPANY_NAME=onlyoffice
# `-ee` - Enterprise Edition
PRODUCT_EDITION=

# ONLYOFFICE Docs version
# Unless otherwise specified, the latest up-to-date version will be used
# Example:
# RELEASE_VERSION=-7.2.2
RELEASE_VERSION=

# Prefix in the name of your repository in Docker Hub
PREFIX_NAME=docs

Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ RUN yum install sudo -y && \
FROM ds-base AS ds-service
ARG TARGETARCH
ARG PRODUCT_EDITION=
ARG PRODUCT_URL=https://download.onlyoffice.com/install/documentserver/linux/onlyoffice-documentserver$PRODUCT_EDITION.$TARGETARCH.rpm
ARG RELEASE_VERSION
ARG PRODUCT_URL=https://download.onlyoffice.com/install/documentserver/linux/onlyoffice-documentserver$PRODUCT_EDITION$RELEASE_VERSION.$TARGETARCH.rpm
ENV TARGETARCH=$TARGETARCH
RUN useradd --no-create-home --shell /sbin/nologin nginx && \
yum -y updateinfo && \
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Possible values:
- `-de`. For commercial Developer Edition,
- `-ee`. For commercial Enterprise Edition.

If you want to use a ONLYOFFICE Docs version other than the latest one, specify the version you need in the `RELEASE_VERSION` variable. If no value is defined, the latest up-to-date version will be used.

#### 2. Run the build

To start the build, run the following command:
Expand Down
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

source .env
export DOCKER_BUILDKIT=1
docker-compose build --build-arg PRODUCT_EDITION=$PRODUCT_EDITION
docker-compose build \
--build-arg PRODUCT_EDITION=$PRODUCT_EDITION \
--build-arg RELEASE_VERSION=$RELEASE_VERSION

0 comments on commit 4ae11e3

Please sign in to comment.