Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1 from KyleAure/unlimited-user-timeout
Browse files Browse the repository at this point in the history
Upgrade to fix password experation
  • Loading branch information
KyleAure authored Feb 26, 2021
2 parents 07e44fd + d25c698 commit e0e9185
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Oracle Docker Images

> ⚠️ Docker image version 1.0 has a flaw! The user SYSTEM's password expires 03/05/2021. Upgrade to version 2.0 where the user SYSTEM's password never expires.
This repo provides a script to automate the process of creating a prebuilt oracle docker image.

## Background
Expand Down
2 changes: 2 additions & 0 deletions docs/dockerhub.README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Oracle Database 18c (version 18.4.0)
============================

>⚠️ Version 1.0 has a flaw! The user SYSTEM's password expires 03/05/2021. Upgrade to version 2.0 where the user SYSTEM's password never expires.
## Build from source
Script to build image is available on GitHub at: https://github.com/KyleAure/oracle-docker-images

Expand Down
7 changes: 6 additions & 1 deletion src/prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ waitForHealthCheck() {
sleep 15
done

echoWithColor "Docker instance found to be healthy. Stopping container"
echoWithColor "Docker instance found to be healthy. Editing password life time"

docker exec --user oracle ${INTERMEDIATE_BUILD} /bin/sh -c 'echo "ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;" | sqlplus / as sysdba '
docker exec --user oracle ${INTERMEDIATE_BUILD} /bin/sh -c 'echo "SELECT USERNAME,EXPIRY_DATE FROM USER_USERS;" | sqlplus / as sysdba '

echoWithColor "Stopping container"

# Stop container
docker stop -t 30 ${INTERMEDIATE_BUILD}
Expand Down

0 comments on commit e0e9185

Please sign in to comment.