Skip to content

Latest commit

 

History

History
50 lines (30 loc) · 1.48 KB

README.md

File metadata and controls

50 lines (30 loc) · 1.48 KB

java-workspace

This repository contains Dockerfile for D1 team java workspace.

More details on Docker's automated build page.

Published to the public Docker Hub Registry.

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull deeone/java-workspace

    (alternatively, you can build an image from Dockerfile: docker build -t="deeone/java-workspace" github.com/d1-oss/docker-docker-java-workspace)

Usage

docker run \
-u 1000 \
-it \
-p 8080:8080 \
--volume $SSH_AUTH_SOCK:/ssh-agent --env SSH_AUTH_SOCK=/ssh-agent \
--volume /home/fabio/Development:/workspace \
--volume /home/fabio/.m2:/home/deeone/.m2  \
--hostname work \
--name deeone \
deeone/java-workspace

Troubleshooting

  1. Missing apparmor

Run the command below:

sudo docker -d

If an error similar to the one below is displayed:

Error loading docker apparmor profile: fork/exec /sbin/apparmor_parser: no such file or directory ()

Then install apparmor:

sudo apt-get install apparmor