Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build container #200

Open
davehouser1 opened this issue Apr 19, 2021 · 0 comments
Open

Unable to build container #200

davehouser1 opened this issue Apr 19, 2021 · 0 comments

Comments

@davehouser1
Copy link

davehouser1 commented Apr 19, 2021

I keep getting this error when trying to build:

Removing intermediate container 4fce44a554c0
 ---> 5271c875fae1
Step 5/16 : RUN bee pack -p /go/src/github.com/snagles/docker-registry-manager/app
 ---> Running in 0d6807e25619
2021/04/19 12:07:48 INFO     â–¶ 0001 Getting bee latest version...
2021/04/19 12:07:48 WARN     â–¶ 0002 Update available 1.12.0 ==> 2.0.2
2021/04/19 12:07:48 WARN     â–¶ 0003 Run `bee update` to update
2021/04/19 12:07:48 INFO     â–¶ 0004 Your bee are up to date
______
| ___ \
| |_/ /  ___   ___
| ___ \ / _ \ / _ \
| |_/ /|  __/|  __/
\____/  \___| \___| v1.12.0
2021/04/19 12:07:48 FATAL    â–¶ 0005 Application path does not exist: /go/src/github.com/snagles/docker-registry-manager/app
ERROR: Service 'docker-registry-manager' failed to build: The command '/bin/sh -c bee pack -p /go/src/github.com/snagles/docker-registry-manager/app' returned a non-zero code: 255

This does not happen if I do the following:

  1. Git clone the repo
  2. And perform a docker-compose up --build from the repo.

Is this expected? Why cant I build?

Docker-compose file

# cat docker-compose.yaml
version: "3.7"

services:
  docker-registry:
    build:
      context: ./
      dockerfile: ./services/docker-registry/docker-registry.Dockerfile
    container_name: docker-registry
    ports:
      - 10.10.10.10:443:443
    volumes:
      - ./services/docker-registry/data:/var/lib/registry
    environment:
      REGISTRY_HTTP_ADDR: 0.0.0.0:443
      REGISTRY_HTTP_TLS_CERTIFICATE: /cert/docker-registry.crt
      REGISTRY_HTTP_TLS_KEY: /cert/docker-registry.key
      REGISTRY_STORAGE_DELETE_ENABLED: "yes"

  docker-registry-manager:
    build:
      context: ./
      dockerfile: services/docker-registry-manager/docker-registry-manager.Dockerfile
    depends_on:
    - docker-registry
    container_name: docker-registry-manager
    image: snagles/docker-registry-manager
    ports:
    - 10.10.10.10:8080:8080
    volumes:
      - ./services/docker-registry-manager/registries.yml:/app/registries.yml
      - ./services/docker-registry-manager/cert/docker-registry-manager.crt:/app/ssl.crt # https certfile location
      - ./services/docker-registry-manager/cert/docker-registry-manager.key:/app/ssl.key # https keyfile location

    environment:
      - MANAGER_PORT=8080
      - MANAGER_REGISTRIES=/app/registries.yml
      - MANAGER_LOG_LEVEL=warn
      - MANAGER_ENABLE_HTTPS=true
      - MANAGER_KEY=/app/ssl.key
      - MANAGER_CERTIFICATE=/app/ssl.crt

Directory structure

Note: I am running my docker-compose up --build from the root directory of this structure. Why must I run docker-compose up --build directly from the source dir?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant