Skip to content

SteeltoeOSS/Dockerfiles

SteeltoeOSS Docker Images

GitHub repo for server images to use for local development with SteeltoeOSS.

Building

Pre-Requisites

The following tools are required to build any image in this repository:

  1. PowerShell or pwsh
  2. Docker or Podman

Config Server, Eureka and Spring Boot Admin

The process for these images is to download starter projects from start.spring.io, apply patches to those files and produce images using the Gradle Plugin. To build these images you must also have:

  1. Access to start.spring.io
  2. patch available in the path or installed with Git for Windows
  3. JDK 21

If you do not already have a JDK installed, consider using Scoop:

# Permit executing remote-signed scripts
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Install Scoop
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
# Add the Java bucket
scoop bucket add java
# Install the JDK
scoop install java/openjdk21

Build a specific image

./build.ps1 config-server

Running

List the created images

docker images

See Common Tasks for instructions on how to run the various docker images.

Images

Name Description
steeltoe.azurecr.io/config-server Spring Cloud Config Server
steeltoe.azurecr.io/eureka-server Netflix Eureka Server
steeltoe.azurecr.io/spring-boot-admin Spring Boot Admin
steeltoe.azurecr.io/uaa-server Cloud Foundry UAA Server

Debug Image Building

Inspect Container Contents

Via StackOverflow, here are the commands to list files in a stopped container.

  1. Find the id of the stopped container
    • docker ps -a
  2. Commit the stopped container to a new image: test_image.
    • docker commit $CONTAINER_ID test_image
  3. Run the new image in a new container with a shell.
    • docker run -ti --entrypoint=sh test_image

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 8