forked from cerc-io/stack-orchestrator
		
	Pass through auth token to plugeth container builds (#529)
This commit is contained in:
		
							parent
							
								
									3011a485ee
								
							
						
					
					
						commit
						c30c779535
					
				| @ -86,6 +86,7 @@ def command(ctx, include, exclude, force_rebuild, extra_build_args): | ||||
|     # TODO: make this configurable | ||||
|     container_build_env = { | ||||
|         "CERC_NPM_REGISTRY_URL": get_npm_registry_url(), | ||||
|         "CERC_GO_AUTH_TOKEN": config("CERC_GO_AUTH_TOKEN", default=""), | ||||
|         "CERC_NPM_AUTH_TOKEN": config("CERC_NPM_AUTH_TOKEN", default=""), | ||||
|         "CERC_REPO_BASE_DIR": dev_root_path, | ||||
|         "CERC_CONTAINER_BASE_DIR": container_build_dir, | ||||
|  | ||||
| @ -1,4 +1,10 @@ | ||||
| #!/usr/bin/env bash | ||||
| # Build cerc/plugeth-statediff | ||||
| source ${CERC_CONTAINER_BASE_DIR}/build-base.sh | ||||
| docker build -t cerc/plugeth-statediff:local ${build_command_args} ${CERC_REPO_BASE_DIR}/plugeth-statediff | ||||
| # This container build currently requires access to private dependencies in gitea | ||||
| # so we check that the necessary access token has been supplied here, then pass it o the build | ||||
| if [[ -z "${CERC_GO_AUTH_TOKEN}" ]]; then | ||||
|     echo "ERROR: CERC_GO_AUTH_TOKEN is not set" >&2 | ||||
|     exit 1 | ||||
| fi | ||||
| docker build -t cerc/plugeth-statediff:local ${build_command_args} --build-arg GIT_VDBTO_TOKEN=${CERC_GO_AUTH_TOKEN} ${CERC_REPO_BASE_DIR}/plugeth-statediff | ||||
|  | ||||
| @ -1,4 +1,10 @@ | ||||
| #!/usr/bin/env bash | ||||
| # Build cerc/plugeth | ||||
| source ${CERC_CONTAINER_BASE_DIR}/build-base.sh | ||||
| docker build -t cerc/plugeth:local ${build_command_args} ${CERC_REPO_BASE_DIR}/plugeth | ||||
| # This container build currently requires access to private dependencies in gitea | ||||
| # so we check that the necessary access token has been supplied here, then pass it o the build | ||||
| if [[ -z "${CERC_GO_AUTH_TOKEN}" ]]; then | ||||
|     echo "ERROR: CERC_GO_AUTH_TOKEN is not set" >&2 | ||||
|     exit 1 | ||||
| fi | ||||
| docker build -t cerc/plugeth:local ${build_command_args} --build-arg GIT_VDBTO_TOKEN=${CERC_GO_AUTH_TOKEN} ${CERC_REPO_BASE_DIR}/plugeth | ||||
|  | ||||
| @ -12,6 +12,7 @@ See `stacks/fixturenet-eth/README.md` for more information. | ||||
| * cerc/tx-spammer | ||||
| 
 | ||||
| ## Deploy the stack | ||||
| Note: since some Go dependencies are currently private, `CERC_GO_AUTH_TOKEN` must be set to a valid Gitea access token before running the `build-containers` command. | ||||
| ``` | ||||
| $ laconic-so --stack fixturenet-plugeth-tx setup-repositories | ||||
| $ laconic-so --stack fixturenet-plugeth-tx build-containers | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user