Browse Source

rename to jce-keycloak

dev
Dmitriy Sim 3 years ago
parent
commit
5a2577fc00
3 changed files with 15 additions and 15 deletions
  1. +5
    -5
      README.md
  2. +6
    -6
      build.sh
  3. +4
    -4
      restart.sh

+ 5
- 5
README.md View File

@ -8,15 +8,15 @@ Juice theme should be located in `./juice` folder.
## Docker commands
### Build the image
Build an image with tag juice-keycloak.
Build an image with tag jce-keycloak.
```bash
docker build -t juice-keycloak .
docker build -t jce-keycloak .
```
### Stop previously running container
```bash
docker stop juice-keycloak
docker stop jce-keycloak
```
### Start a container
@ -30,8 +30,8 @@ docker run --rm -it -d \
-e DB_DATABASE=keycloak \
-e DB_USER=keycloak \
-e DB_PASSWORD=keycloak \
--name juice-keycloak \
juice-keycloak
--name jce-keycloak \
jce-keycloak
```
Linux: PGHOST=172.17.0.1


+ 6
- 6
build.sh View File

@ -21,10 +21,10 @@ echo "SOURCE_DIR: ${SOURCE_DIR}"
export RELEASE_VERSION=`cat version.ini`
if [ "${docker_registry}" != "" ] || [ "${1}" == "docker-image" ] || [ "${2}" == "docker-image" ]
then
docker build -t ${docker_registry}${docker_registry_path_suffix}/juice-keycloak:${RELEASE_VERSION} -t ${docker_registry}${docker_registry_path_suffix}/juice-keycloak:latest . &&
docker build -t ${docker_registry}${docker_registry_path_suffix}/jce-keycloak:${RELEASE_VERSION} -t ${docker_registry}${docker_registry_path_suffix}/jce-keycloak:latest . &&
docker login --username ${docker_registry_username} --password ${docker_registry_password} ${docker_registry} &&
docker push ${docker_registry}${docker_registry_path_suffix}/juice-keycloak:${RELEASE_VERSION} &&
docker push ${docker_registry}${docker_registry_path_suffix}/juice-keycloak:latest
docker push ${docker_registry}${docker_registry_path_suffix}/jce-keycloak:${RELEASE_VERSION} &&
docker push ${docker_registry}${docker_registry_path_suffix}/jce-keycloak:latest
exit $?
fi
@ -32,8 +32,8 @@ fi
if [ "${BUILD_RPM}" != "" ] || [ "${1}" == "rpm" ] || [ "${2}" == "rpm" ]
then
export _RPMBUILD_DIR="${RPMBUILD_DIR:-/tmp/rpmbuild-juice-keycloak}"
export RPM_BUILD_ROOT="${RPM_BUILD_ROOT:-/tmp/build-juice-keycloak}"
export _RPMBUILD_DIR="${RPMBUILD_DIR:-/tmp/rpmbuild-jce-keycloak}"
export RPM_BUILD_ROOT="${RPM_BUILD_ROOT:-/tmp/build-jce-keycloak}"
if [ ! -d "${_RPMBUILD_DIR}" ]
then
mkdir -p "${_RPMBUILD_DIR}"
@ -46,7 +46,7 @@ then
then
mkdir -p "${RPM_BUILD_ROOT}"
fi
rpmbuild --target noarch -bb "${SOURCE_DIR}/juice-keycloak.spec" --buildroot="${RPM_BUILD_ROOT}" --define "_topdir ${_RPMBUILD_DIR}" --define "_release_version ${RELEASE_VERSION}"
rpmbuild --target noarch -bb "${SOURCE_DIR}/jce-keycloak.spec" --buildroot="${RPM_BUILD_ROOT}" --define "_topdir ${_RPMBUILD_DIR}" --define "_release_version ${RELEASE_VERSION}"
fi
if [ "${RUN_HOOKS}" != "" ]


+ 4
- 4
restart.sh View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
docker build -t juice-keycloak .
docker build -t jce-keycloak .
docker stop juice-keycloak || true
docker stop jce-keycloak || true
docker run --rm -it -d \
-p 8080:8080 \
@ -12,5 +12,5 @@ docker run --rm -it -d \
-e DB_DATABASE=keycloak \
-e DB_USER=keycloak \
-e DB_PASSWORD=keycloak \
--name juice-keycloak \
juice-keycloak
--name jce-keycloak \
jce-keycloak

Loading…
Cancel
Save