Skip to content

League-Examples/java-devcontainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Dev Container

Prebuilding

Prebuilding the container will result in much faster start-up times for the container.

  • Get an access token from the jointheleague-it account, with the package permissions. See this guide for details.
  • Store the token for future use, here is it GITHUB_TOKEN but it can be any env var.
  • Login to the GH Container Registry: echo $GITHUB_TOKEN | docker login ghcr.io -u jointheleague-it --password-stdin
  • Read the brief guide to prebuilding. Be sure to install the devcontainer program with npm.
  • Build the container
  • Push it to container registry.
# Install
npm install -g @devcontainers/cli

# Go to the workspace. 
cd <workspace, with a .devcontainer>

# Build
devcontainer build --workspace-folder . --image-name ghcr.io/league-infrastructure/jtljava:latest

#Login to container registry
echo $GITHUB_TOKEN | docker login ghcr.io -u jointheleague-it  --password-stdin

# Push
docker push ghcr.io/league-infrastructure/jtljava:latest

The package will be in the packages tab of the League-Infrastructure repo, https://github.com/orgs/league-infrastructure/packages

About

A template for repositories that will use Code Spaces to run Java programs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages