Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/craigfoote/ca.footeware.rest.galleries
Docker image with a Spring Boot rest picture service.
https://github.com/craigfoote/ca.footeware.rest.galleries
Last synced: 7 days ago
JSON representation
Docker image with a Spring Boot rest picture service.
- Host: GitHub
- URL: https://github.com/craigfoote/ca.footeware.rest.galleries
- Owner: CraigFoote
- License: gpl-3.0
- Created: 2023-01-18T16:54:54.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-10T19:23:06.000Z (9 days ago)
- Last Synced: 2024-11-10T19:26:10.488Z (9 days ago)
- Language: Java
- Size: 1.03 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
body {
background-color: #2c2c2c;
font-size: 22px;
color: #ddeeee;
}
h1,h2,h3 {
color: #569cd6;
}
code {
color: #ff8e3c;
}# Preparation
1. `sudo mkdir -p /opt/rest.galleries/logs`
1. `sudo mkdir -p /opt/rest.galleries/galleries`
1. `sudo chown craig:craig -R /opt/rest.galleries`
1. Fill `galleries` with folders of pictures.# Certificate
1. `openssl req -newkey rsa:2048 -keyout footeware.ca.test.key -x509 -days 365 -out footeware.ca.test.crt`
1. `openssl rsa -in footeware.ca.test.key -aes256 -out aes.pem`
1. Place key and its AES version in /src/main/resources along with the cert.# Building
1. `mvn clean package`
1. `docker run --name rest.galleries -p 8000:8000 -d -v /opt/rest.galleries/galleries:/opt/rest.galleries/galleries -t rest.galleries:[version]`
1. container should start and exit immediately because it can't find the production cert. To see the error, re-start the container thru the Docker perspective in eclipse.
1. tag **rest.galleries:[version]** as **craigfoote/rest.galleries:[version]**
1. push **craigfoote/rest.galleries:[version]**
1. tag **rest.galleries:[version]** as **craigfoote/rest.galleries:latest**
1. push **craigfoote/rest.galleries:latest**