UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
O
Opensource
mariadb
mariadb105
Commits
46052ff7
Commit
46052ff7
authored
Apr 06, 2021
by
Vickie Shen
Browse files
updated file permission
parent
4a0da5ba
Pipeline
#212705
passed with stages
in 18 minutes and 50 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
Dockerfile
Dockerfile
+8
-3
scripts/healthcheck.sh
scripts/healthcheck.sh
+10
-0
No files found.
Dockerfile
View file @
46052ff7
...
...
@@ -5,6 +5,7 @@ ARG BASE_TAG=8.3
FROM
${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
COPY
scripts/RPM-GPG-KEY-MariaDB /opt/
COPY
scripts/healthcheck.sh /usr/local/bin/
COPY
*.rpm.tar *.rpm /opt/
RUN
cd
/opt/
&&
\
...
...
@@ -16,9 +17,9 @@ RUN cd /opt/mariadb-10.5.9-rhel-8-x86_64-rpms && \
./setup_repository
&&
\
dnf
-y
update
&&
dnf
-y
upgrade
&&
\
dnf
install
-y
--nogpgcheck
MariaDB-server /opt/
*
.rpm
&&
\
chmod
-R
g-s /usr/lib64/mysql/plugin/auth_pam_tool_dir/auth_pam_tool
&&
\
chmod
-R
u-s /usr/lib64/mysql/
&&
\
rm
-f
/usr/share/doc/perl-IO-Socket-SSL/example/simulate_proxy.pl
&&
\
find /usr/share/doc/perl-IO-Socket-SSL/certs
-name
"*.enc"
-o
-name
"*.pem"
| xargs
rm
-f
&&
\
find /usr/share/doc/perl-IO-Socket-SSL/example
-name
"*.pl"
-o
| xargs
rm
-f
&&
\
find /usr/share/doc/perl-Net-SSLeay/examples
-name
"*.pem"
| xargs
rm
-f
&&
\
yum clean all
...
...
@@ -26,7 +27,9 @@ RUN cd /opt/mariadb-10.5.9-rhel-8-x86_64-rpms && \
COPY
./scripts/mysql_secure_installation_automated.sh /usr/local/bin/mysql_secure_installation_automated
RUN
chmod
+x /usr/local/bin/mysql_secure_installation_automated
COPY
./scripts/entrypoint.sh ./entrypoint.sh
RUN
chmod
+x ./entrypoint.sh
RUN
chmod
+x ./entrypoint.sh
&&
\
chmod
+x /usr/local/bin/healthcheck.sh
&&
\
chmod
g-s /usr/lib64/mysql/plugin/auth_pam_tool_dir/auth_pam_tool
#Create usafadmin user
RUN
groupadd
-g
1500 usafadmin
...
...
@@ -35,4 +38,6 @@ RUN chown -R usafadmin /var/lib/mysql
USER
usafadmin
RUN
cp
-R
/var/lib/mysql /tmp/
HEALTHCHECK
--interval=10s --timeout=30s --start-period=10s --retries=3 CMD /usr/local/bin/healthcheck.sh
ENTRYPOINT
[ "/bin/bash", "entrypoint.sh" ]
scripts/healthcheck.sh
0 → 100644
View file @
46052ff7
#!/bin/bash
set
-eo
pipefail
host
=
"
$(
hostname
--ip-address
||
echo
'127.0.0.1'
)
"
if
cqlsh
-u
cassandra
-p
cassandra
"
$host
"
< /dev/null
;
then
exit
0
fi
exit
1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment