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

Dockerfile #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Dockerfile #27

wants to merge 1 commit into from

Conversation

fmilkau
Copy link

@fmilkau fmilkau commented Jul 24, 2023

Changes (other than the addition of the Dockerfile) include:

  • set parent pom version to 1.9.0 due to availablity issues of 1.9.0-SNAPSHOT
  • added IntelliJ-specific configuration to .gitignore

A new image can be created by running the following command:

docker build -t <NAME>:<VERSION> <PROJECT_ROOT_PATH>
  • <NAME> is the name of the image, oftentimes preceded by an optional namespace; powertac/sample-broker would be an example of that.
  • <VERSION> is the version of the specific image; defaults to latest, if I remember correctly.
  • <PROJECT_ROOT_PATH> is the (relative) path to the directory that contains the Dockerfile and is used as the build context, e.g. for copying files that should be available inside the container.

To build the latest version of the Sample Broker from the project root, the command would look like this:

docker build -t powertac/sample-broker:latest .

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

Successfully merging this pull request may close these issues.

3 participants