Skip to content

Commit

Permalink
Rename to osparc-meta-dakota
Browse files Browse the repository at this point in the history
  • Loading branch information
wvangeit committed May 8, 2024
1 parent e4b85cf commit 2c87309
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ commit = False
message = service version: {current_version} → {new_version}
tag = False

[bumpversion:file:.osparc/osparc-dakota/metadata.yml]
[bumpversion:file:.osparc/osparc-meta-dakota/metadata.yml]
search = {current_version}
replace = {new_version}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
services:
osparc-dakota:
osparc-meta-dakota:
build:
dockerfile: Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: DakotaService
description: "DakotaServiceService"
key: simcore/services/dynamic/osparc-dakota
key: simcore/services/dynamic/osparc-meta-dakota
version: 0.0.2
integration-version: 0.0.2
type: dynamic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ paths-mapping:
compose-spec:
version: "3.7"
services:
osparc-dakota:
image: $${SIMCORE_REGISTRY}/simcore/services/dynamic/osparc-dakota:$${SERVICE_VERSION}
osparc-meta-dakota:
image: $${SIMCORE_REGISTRY}/simcore/services/dynamic/osparc-meta-dakota:$${SERVICE_VERSION}
environment:
- OSPARC_API_KEY=$${OSPARC_VARIABLE_API_KEY}
- OSPARC_API_SECRET=$${OSPARC_VARIABLE_API_SECRET}
container-http-entrypoint: osparc-dakota
container-http-entrypoint: osparc-meta-dakota
24 changes: 20 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ SHELL = /bin/sh
.DEFAULT_GOAL := help
MAKEFLAGS += -j3

export DOCKER_IMAGE_NAME ?= osparc-dakota
export DOCKER_IMAGE_NAME ?= osparc-meta-dakota
export DOCKER_IMAGE_TAG ?= 0.0.2

export MASTER_AWS_REGISTRY ?= registry.osparc-master-zmt.click
export MASTER_REGISTRY ?= registry.osparc-master.speag.com
export LOCAL_REGISTRY ?= registry:5000

define _bumpversion
# upgrades as $(subst $(1),,$@) version, commits and tags
@docker run -it --rm -v $(PWD):/${DOCKER_IMAGE_NAME} \
Expand Down Expand Up @@ -56,9 +60,21 @@ run-local: clean-validation run-compose-local run-mock-mapservice run-validation

.PHONY: publish-local
publish-local: ## push to local throw away registry to test integration
docker tag simcore/services/dynamic/${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} registry:5000/simcore/services/dynamic/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)
docker push registry:5000/simcore/services/dynamic/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)
@curl registry:5000/v2/_catalog | jq
docker tag simcore/services/dynamic/${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} $(LOCAL_REGISTRY)/simcore/services/dynamic/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)
docker push $(LOCAL_REGISTRY)/simcore/services/dynamic/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)
@curl $(LOCAL_REGISTRY)/v2/_catalog | jq

publish-master: ## push to local throw away registry to test integration
docker tag simcore/services/dynamic/${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} $(MASTER_REGISTRY)/simcore/services/dynamic/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)
docker push $(MASTER_REGISTRY)/simcore/services/dynamic/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)
@curl $(MASTER_REGISTRY)/v2/_catalog | jq

.PHONY: publish-master-aws
publish-master-aws: ## push to local throw away registry to test integration
docker tag simcore/services/dynamic/${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} $(MASTER_AWS_REGISTRY)/simcore/services/dynamic/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)
docker push $(MASTER_AWS_REGISTRY)/simcore/services/dynamic/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)
@curl $(MASTER_AWS_REGISTRY)/v2/_catalog | jq


.PHONY: help
help: ## this colorful help
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.7'
services:
osparc-dakota:
image: simcore/services/dynamic/osparc-dakota:0.0.2
osparc-meta-dakota:
image: simcore/services/dynamic/osparc-meta-dakota:0.0.2
ports:
- "8888:8888"
environment:
Expand Down

0 comments on commit 2c87309

Please sign in to comment.