Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
d039e4fd
Commit
d039e4fd
authored
10 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
Now using a special docker where the database for testing is already available
parent
a56e16fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
autotest.sh
+2
-26
2 additions, 26 deletions
autotest.sh
with
2 additions
and
26 deletions
autotest.sh
+
2
−
26
View file @
d039e4fd
...
...
@@ -124,37 +124,13 @@ function execute_tests {
fi
if
[
"
$1
"
==
"oci"
]
;
then
echo
"Fire up the oracle docker"
DOCKER_CONTAINER_ID
=
`
docker run
-d
wnameless/
oracle-xe-11g
`
DOCKER_CONTAINER_ID
=
`
docker run
-d
deepdiver/docker-
oracle-xe-11g
`
DATABASEHOST
=
`
docker inspect
$DOCKER_CONTAINER_ID
|
grep
IPAddress |
cut
-d
'"'
-f
4
`
echo
"Waiting 60 seconds for Oracle initialization ... "
sleep
60
echo
"drop the database"
echo
"sqlplus -s -l system/oracle@//
$DATABASEHOST
:1521/xe"
sqlplus
-s
-l
system/oracle@//
$DATABASEHOST
:1521/xe
<<
EOF
drop user
$DATABASENAME
cascade;
EOF
echo
"create the database"
sqlplus
-s
-l
system/oracle@//
$DATABASEHOST
:1521/xe
<<
EOF
create user
$DATABASENAME
identified by owncloud;
alter user
$DATABASENAME
default tablespace users
temporary tablespace temp
quota unlimited on users;
grant create session
, create table
, create procedure
, create sequence
, create trigger
, create view
, create synonym
, alter session
to
$DATABASENAME
;
exit;
EOF
DATABASEUSER
=
$DATABASENAME
DATABASEUSER
=
autotest
DATABASENAME
=
'XE'
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment