Skip to content

Dockerfile#27

Open
fmilkau wants to merge 1 commit intomasterfrom
feature-dockerfile
Open

Dockerfile#27
fmilkau wants to merge 1 commit intomasterfrom
feature-dockerfile

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