A Dojo docker image with Java build tools. Based on openjdk:15-jdk-buster
.
This image has installed:
- openjdk version 15
- OpenJDK Runtime Environment
- Gradle 6.8.1
- Apache Maven 3.3.9
- Install Dojo On OSX, you can install with homebrew:
brew install kudulab/homebrew-dojo-osx/dojo
A manual install is another option:
version="0.9.0"
# on Linux:
wget -O /tmp/dojo https://github.com/kudulab/dojo/releases/download/${version}/dojo_linux_amd64
# or on Darwin:
# wget -O /tmp/dojo https://github.com/kudulab/dojo/releases/download/${version}/dojo_darwin_amd64
chmod +x /tmp/dojo
mv /tmp/dojo /usr/bin/dojo
- Provide a Dojofile:
DOJO_DOCKER_IMAGE="kudulab/openjdk-dojo:1.4.0"
- Run, example commands:
dojo java -version
dojo gradle --version
dojo mvn --version
By default, current directory in docker container is /dojo/work
.
For a real-world usage see these projects:
These files are used inside the docker image:
~/.ssh/
-- is copied from host to dojo's home~/.ssh
~/.ssh/config
-- will be generated on docker container start. SSH client is configured to ignore known ssh hosts.~/.gitconfig
-- if exists locally, will be copied~/.profile
-- will be generated on docker container start, in order to ensure current directory is/dojo/work
.
Copyright 2020 Ewa Czechowska, Tomasz Sętkowski
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.