title | author | date | description | url |
---|---|---|---|---|
JDK Java and Docker Tools |
Frédéric Delorme |
2021-11-02 |
Everything useful to start with java and docker |
extracted from Javadoc @see or {@link}?.
The @see
tag is a bit different than the @link
tag, limited in some ways and more flexible in others:
different JavaDoc link types Different JavaDoc link types
- Displays the member name for better learning, and is refactorable; the name will update when renaming by refactor
- Refactorable and customizable; your text is displayed instead of the member name
- Displays name, refactorable
- Refactorable, customizable
- A rather mediocre combination that is:
- Refactorable, customizable, and stays in the See Also section
- Displays nicely in the Eclipse hover
- Displays the link tag and its formatting when generated 😞
- When using multiple
@see
items, commas in the description make the output confusing
- Completely illegal; causes unexpected content and illegal character errors in the generator
See the results below:
JavaDoc generation results with different link types JavaDoc generation results with different link types
sudo apt install docker.io
sudo usermod -aG docker ${USER}
- Create volume:
docker volume create portainer_data
- run portainer-ce
on linux :
docker run -d -p 8000:8000 -p 9443:9443 --name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest
- create destination dicrectories
mkdir -p /var/data/teamcity/data
mkdir -p /var/data/teamcity/logs
As the TeamCity start under user user 0, you need to chown on the just created directories:
chown -R 1000:1000 /var/data/teamcity/data
chown -R 1000:1000 /var/data/teamcity/logs
- start container
docker run -it --name teamcity-server-instance \
-v /var/data/teamcity/data:/data/teamcity_server/datadir \
-v /var/data/teamcity/logs:/opt/teamcity/logs \
-p 8090:8111 \
-u 1000:1000 \
jetbrains/teamcity-server
- Add TeamCity agent
first create its working dicrectory :
sudo mkdir -p /var/data/teamcity-agent1
Then adapt the user:
chown -R 1000:1000 /var/data/teamcity-agent1
And finaly start the TeamCity agent:
run -it -e SERVER_URL="http://<server-host-name>:8090/" \
-v /var/data/teamcity-agent1/data:/data/teamcity_agent/conf \
--name="Agent-1" jetbrains/teamcity-minimal-agent" \
jetbrains/teamcity-minimal-agent
Add any number of agent your server can support but change the working directory and name for each agent.
Simply run the docker image :
docker run -p 8080:8080 -p 50000:50000 -v /var/data/jenkins:/var/jenkins_home jenkins/jenkins
One more time, just a matter of Docker command to get an out-of-the-box running gitea:
sudo mkdir -p /var/lib/gitea
docker run -d --name=gitea -p 10022:22 -p 10080:3000 -v /var/lib/gitea:/data gitea/gitea:latest