|
|
Untuk menjalankan aplikasi di docker container, terdiri dari image yaitu
|
|
|
|
|
|
- tabeldata.ip-dynamic.com:8088/oracle/database:11.2.0.2-xe
|
|
|
|
|
|
## Add insecure registry to docker
|
|
|
|
|
|
- On linux
|
|
|
|
|
|
add or edit file `/etc/docker/daemon.json` serperti berikut:
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"insecure-registries" : ["tabeldata.ip-dynamic.com:8088", "tabeldata.ip-dynamic.com:8087"]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
Restart docker daemon
|
|
|
|
|
|
```bash
|
|
|
service docker restart
|
|
|
```
|
|
|
|
|
|
- Mac
|
|
|
|
|
|
Tambahkan insecure registry lewat Docker CE Desktop: `tabeldata.ip-dynamic.com:8088`, `tabeldata.ip-dynamic.com:8087`
|
|
|
|
|
|
## Run deployment using docker-compose
|
|
|
|
|
|
Setelah membuild project ini dengan maven, kita bisa menjalankan project ini di docker container dengan mudah. dengan bantuan perintah `docker-compose` seperti berikut:
|
|
|
|
|
|
```bash
|
|
|
docker-compose -f docker/compose-oracle11.yml -p project-name up -d
|
|
|
```
|
|
|
|
|
|
dengan perintah tersebut, maka kita udah di siapkan system required dari aplikasi ini yaitu seperti yang kita sebutkan diatas yaitu oracle-11g XE.
|
|
|
|
|
|
## Stop service using docker-compose
|
|
|
|
|
|
Untuk stop daemon service docker, gunakan perintah berikut:
|
|
|
|
|
|
```bash
|
|
|
docker-compose -f docker/compose-oracle11.yml -p project-name down
|
|
|
``` |
|
|
\ No newline at end of file |