项目作者: sicz

项目描述 :
An OpenJDK base images.
高级语言: Ruby
项目地址: git://github.com/sicz/docker-openjdk.git
创建时间: 2017-04-19T21:06:18Z
项目社区:https://github.com/sicz/docker-openjdk

开源协议:Apache License 2.0

下载


docker-openjdk

CircleCI Status Badge

This project is not aimed at public consumption.
It exists to serve as a single endpoint for SICZ containers.

An OpenJDK base images.

Contents

Alpine Linux based images

This images only contains essential components:

CentOS based images

This images only contains essential components:

Getting started

These instructions will get you a copy of the project up and running on your
local machine for development and testing purposes. See deployment for notes
on how to deploy the project on a live system.

Installing

Clone GitHub repository to your working directory:

  1. git clone https://github.com/sicz/docker-openjdk

Usage

The project contains Docker image variant directories:

  • 8u141 - OpenJDK 8.141

Use the command make in the project directory and image variant directories:

  1. make all # Build and test all Docker images
  2. make build # Build all Docker images
  3. make rebuild # Rebuild all Docker images
  4. make clean # Remove all containers and clean work files
  5. make docker-pull # Pull all images from Docker Registry
  6. make docker-pull-baseimage # Pull the base image from the Docker Registry
  7. make docker-pull-dependencies # Pull all image dependencies from Docker Registry
  8. make docker-pull-image # Pull all project images from Docker Registry
  9. make docker-pull-testimage # Pull all project images from Docker Registry
  10. make docker-push # Push all project images to Docker Registry

Use the command make in the image version directories:

  1. make all # Build a new image and run the tests
  2. make ci # Build a new image and run the tests
  3. make build # Build a new image
  4. make rebuild # Build a new image without using the Docker layer caching
  5. make config-file # Display the configuration file for the current configuration
  6. make vars # Display the make variables for the current configuration
  7. make up # Remove the containers and then run them fresh
  8. make create # Create the containers
  9. make start # Start the containers
  10. make stop # Stop the containers
  11. make restart # Restart the containers
  12. make rm # Remove the containers
  13. make wait # Wait for the start of the containers
  14. make ps # Display running containers
  15. make logs # Display the container logs
  16. make logs-tail # Follow the container logs
  17. make shell # Run the shell in the container
  18. make test # Run the tests
  19. make test-shell # Run the shell in the test container
  20. make clean # Remove all containers and work files
  21. make docker-pull # Pull all images from the Docker Registry
  22. make docker-pull-baseimage # Pull the base image from the Docker Registry
  23. make docker-pull-dependencies # Pull the project image dependencies from the Docker Registry
  24. make docker-pull-image # Pull the project image from the Docker Registry
  25. make docker-pull-testimage # Pull the test image from the Docker Registry
  26. make docker-push # Push the project image into the Docker Registry

Deployment

OpenJDK images is intended to serve as a base image for other images.

You can start with this sample Dockerfile file:

  1. FROM sicz/openjdk:8-jre-alpine
  2. ENV DOCKER_COMMAND=MY_COMMAND
  3. ENV DOCKER_USER=MY_USER
  4. # Create an user account
  5. RUN set -ex && adduser -D -H -u 1000 ${DOCKER_USER}
  6. # Install some packages
  7. RUN set -ex && apk add --no-cache SOME_PACKAGES
  8. # Copy your own entrypoint scripts
  9. COPY dockerfile-entrypoint.d /dockerfile-entrypoint.d

Authors

See also the list of
contributors
who participated in this project.

License

This project is licensed under the Apache License, Version 2.0 - see the
LICENSE file for details.