Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
M169-Project-Docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Linus Fankhauser
M169-Project-Docker
Commits
e924d0f8
Commit
e924d0f8
authored
1 year ago
by
vmadmin
Browse files
Options
Downloads
Patches
Plain Diff
Initial Commit
parent
a250c693
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Initial Commit
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mysql_db/Dockerfile
+10
-0
10 additions, 0 deletions
mysql_db/Dockerfile
mysql_db/prepare_db.sql
+16
-0
16 additions, 0 deletions
mysql_db/prepare_db.sql
with
26 additions
and
0 deletions
mysql_db/Dockerfile
0 → 100644
+
10
−
0
View file @
e924d0f8
FROM
mysql
MAINTAINER
fabio.flueckiger@post.ch
ENV
MYSQL_USER Gaeste
ENV
MYSQL_PASSWORD 123456
ENV
MYSQL_DATABASE Gaeste
ENV
MYSQL_ROOT_PASSWORD poi3rguhnp23iufhv
ADD
prepare_db.sql /docker-entrypoint-initdb.d
EXPOSE
3306
This diff is collapsed.
Click to expand it.
mysql_db/prepare_db.sql
0 → 100644
+
16
−
0
View file @
e924d0f8
use
Gaeste
;
Create
Table
Gaeste
(
id
int
primary
key
auto_increment
not
null
,
vorname
varchar
(
45
)
not
null
,
nachname
varchar
(
45
)
not
null
,
message
varchar
(
150
)
not
null
,
datum
varchar
(
45
)
not
null
);
#
CREATE
USER
'Gaeste'
@
'localhost'
IDENTIFIED
BY
'123456'
;
grant
select
on
Gaeste
.
*
to
Gaeste
@
localhost
;
grant
update
on
Gaeste
.
*
to
Gaeste
@
localhost
;
grant
insert
on
Gaeste
.
*
to
Gaeste
@
localhost
;
grant
delete
on
Gaeste
.
*
to
Gaeste
@
localhost
;
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