Skip to content

Commit

Permalink
Version tick to 0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ethho committed Jan 17, 2024
1 parent 959acb6 commit ec354fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
build:
context: .
dockerfile: docker/percona.dockerfile
args:
- BUILDER_TAG=${DOCKER_TAG:-v0.1.5}
environment:
- MYSQL_ROOT_PASSWORD=password
env_file:
Expand All @@ -24,10 +26,10 @@ services:
depends_on:
builder:
condition: service_completed_successfully
image: datajoint/pam-oauth2-percona:${DOCKER_TAG:-v0.1.4}
image: datajoint/pam-oauth2-percona:${DOCKER_TAG:-v0.1.5}
builder:
container_name: pam-oauth2-builder
build:
context: .
dockerfile: docker/builder.dockerfile
image: datajoint/pam-oauth2-builder:${DOCKER_TAG:-v0.1.4}
image: datajoint/pam-oauth2-builder:${DOCKER_TAG:-v0.1.5}
8 changes: 3 additions & 5 deletions docker/percona.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM datajoint/pam-oauth2-builder:v0.1.4 as builder
ARG BUILDER_TAG
FROM datajoint/pam-oauth2-builder:${BUILDER_TAG} as builder
FROM percona:8
USER root

RUN \
yum -y install python3 python3-pip && \
pip3 install python-pam
Expand All @@ -18,10 +18,8 @@ RUN \
echo "ap_user:password" | chpasswd
USER mysql:mysql

# Copy the binary from the builder stage
COPY --from=builder /tmp/pam-oauth2/libpam_oidc_gnu.so /usr/lib64/security/libpam_oidc.so

# https://docs.percona.com/percona-server/8.0/pam-plugin.html#installation
COPY --from=builder /tmp/pam-oauth2/libpam_oidc_gnu.so /usr/lib64/security/libpam_oidc.so
RUN echo 'plugin_load_add = auth_pam.so' >> /etc/my.cnf
COPY config/pam_unix /etc/pam.d/mysqld
COPY config/service_example /etc/pam.d/oidc
2 changes: 1 addition & 1 deletion pam-oidc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pam-oidc"
version = "0.1.4"
version = "0.1.5"
authors = ["guzman-raphael <[email protected]>"]
edition = "2021"

Expand Down

0 comments on commit ec354fb

Please sign in to comment.