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

Add new Dockerfile for pipeline container usage #2141

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

seantleonard
Copy link
Contributor

Why make this change?

What is this change?

  • Used by pipelines to build Docker container.
  • This Dockerfile assumes that pre-built DAB bits are provided to the Docker context.
  • The provided built binaries are in path /src/out/engine/net6.0

How was this tested?

  • Pipeline

  • Local run of docker build -> docker compose ->

  • In the docker build step, C:\<repo_root_with_project_built> just means: clone repo and build dab with dotnet build. pass the path pointing to the root of the repo.

  • the arg -f "C:\dockertest-ob\Dockerfile" should point to the Dockerfile e.g. the file this pr adds.

docker build -t local-dab-container:sean -f "C:\dockertest-ob\Dockerfile" C:\<repo_root_with_project_built>

docker compose -f "C:\dockertest-ob\docker-compose-mssql.yml" --verbose up

Sample docker compose file:

version: "3.9"
services:
  hawaii:
    image: "local-dab-container:sean"
    ports:
      - "5000:5000"
    volumes:
      - "C:/dockertest-ob/dab-config.MsSql.json:/App/dab-config.json"

@seantleonard
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@abhishekkumams abhishekkumams merged commit 2ce1591 into main Mar 29, 2024
9 checks passed
@abhishekkumams abhishekkumams deleted the dev/sean/obdocker branch March 29, 2024 05:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants