From e0959e2998832e15dd278b40524f156f4d3b0640 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Thu, 12 Dec 2019 17:13:23 +0000 Subject: [PATCH] Add infrastructure for an server extras image This is based on the standalone image from https://github.com/ome/omero-web-docker/tree/5.6.0-m4 This just provides the infrastructure for building the extras image, it doesn't install or change anything (see https://github.com/ome/omero-server-docker/pull/21 instead) --- Makefile | 15 ++++++++++++++- extras/01-default-extras.omero | 1 + extras/Dockerfile | 9 +++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 extras/01-default-extras.omero create mode 100644 extras/Dockerfile diff --git a/Makefile b/Makefile index ac30b7ec..dc63aadd 100644 --- a/Makefile +++ b/Makefile @@ -65,13 +65,20 @@ endif ifndef BUILD $(eval BUILD=0) endif - docker build -t $(REPO)/omero-server:$(VERSION)-$(BUILD) . + docker build $(BUILDARGS) -t $(REPO)/omero-server:$(VERSION)-$(BUILD) . docker tag $(REPO)/omero-server:$(VERSION)-$(BUILD) $(REPO)/omero-server:$(VERSION) @MAJOR_MINOR=$(shell echo $(VERSION) | cut -f1-2 -d. );\ docker tag $(REPO)/omero-server:$(VERSION)-$(BUILD) $(REPO)/omero-server:$$MAJOR_MINOR + docker build --build-arg=PARENT_IMAGE=$(REPO)/omero-server:$(VERSION) -t $(REPO)/omero-server-extras:$(VERSION)-$(BUILD) extras + docker tag $(REPO)/omero-server-extras:$(VERSION)-$(BUILD) $(REPO)/omero-server-extras:$(VERSION) + @MAJOR_MINOR=$(shell echo $(VERSION) | cut -f1-2 -d. );\ + docker tag $(REPO)/omero-server-extras:$(VERSION)-$(BUILD) $(REPO)/omero-server-extras:$$MAJOR_MINOR + + docker-build: docker-build-versions docker tag $(REPO)/omero-server:$(VERSION)-$(BUILD) $(REPO)/omero-server:latest + docker tag $(REPO)/omero-server-standalone:$(VERSION)-$(BUILD) $(REPO)/omero-server-extras:latest docker-push-versions: @@ -86,5 +93,11 @@ endif @MAJOR_MINOR=$(shell echo $(VERSION) | cut -f1-2 -d. );\ docker push $(REPO)/omero-server:$$MAJOR_MINOR + docker push $(REPO)/omero-server-extras:$(VERSION)-$(BUILD) + docker push $(REPO)/omero-server-extras:$(VERSION) + @MAJOR_MINOR=$(shell echo $(VERSION) | cut -f1-2 -d. );\ + docker push $(REPO)/omero-server-extras:$$MAJOR_MINOR + docker-push: docker-push-versions docker push $(REPO)/omero-server:latest + docker push $(REPO)/omero-server-extras:latest diff --git a/extras/01-default-extras.omero b/extras/01-default-extras.omero new file mode 100644 index 00000000..e9341f5d --- /dev/null +++ b/extras/01-default-extras.omero @@ -0,0 +1 @@ +# OMERO.server extras diff --git a/extras/Dockerfile b/extras/Dockerfile new file mode 100644 index 00000000..464037e2 --- /dev/null +++ b/extras/Dockerfile @@ -0,0 +1,9 @@ +ARG PARENT_IMAGE=openmicroscopy/omero-server:latest +FROM ${PARENT_IMAGE} +MAINTAINER ome-devel@lists.openmicroscopy.org.uk + +USER root + +ADD 01-default-extras.omero /opt/omero/server/config/ + +USER omero-server