+
Skip to content

update to latest release #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions .github/workflows/ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,21 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
container: ghcr.io/pavelpikta/docker-ansible-ci:2.9

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Lints
- name: Lint and Molecule
run: |
yamllint . -c .yamllint
ansible-lint -c .ansible-lint
molecule:
needs: lint
runs-on: ubuntu-latest
container: ghcr.io/pavelpikta/docker-ansible-ci:2.9

steps:
- name: Checkout repository
uses: actions/checkout@v2
pip3 install --upgrade pip wheel && \
pip3 install --upgrade cryptography cffi && \
pip3 install ansible-core==2.13.2 && \
pip3 install ansible==6.1.0 ansible-lint==6.3.0 yamllint && \
pip3 install molecule molecule-containers molecule-docker molecule-podman molecule-ec2

- name: Molecule
run: |
pip3 install ansible ansible-lint
pip3 install molecule[lint,docker]==3.2.3
yamllint . -c .yamllint
ansible-lint -x fqcn-builtins,var-spacing -c .ansible-lint

molecule test -s default
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ minio_client_bin: /usr/local/bin/mc
Installation path of the MinIO server and client binaries.

```yaml
minio_server_release: "RELEASE.2022-06-07T00-33-41Z"
minio_client_release: "RELEASE.2022-05-09T04-08-26Z"
minio_server_release: "RELEASE.2022-08-25T07-17-05Z"
minio_client_release: "RELEASE.2022-08-23T05-45-20Z"
```

Release to install for both server and client; lastest if the default. Can be 'RELEASE.2022-06-07T00-33-41Z' for instance.
Release to install for both server and client; lastest if the default. Can be 'RELEASE.2022-07-26T00-53-03Z' for instance.

```yaml
minio_user: minio
Expand Down Expand Up @@ -132,10 +132,6 @@ None.
minio_server_datadirs: [ "/minio1" ]
```

## Changelog

See [changelog](CHANGELOG.md).

## License

MIT
34 changes: 34 additions & 0 deletions centos7.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM centos:7

ENV container=docker \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
TERM=xterm

RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; \
do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/anaconda.target.wants/*;

# Dependencies for Ansible
RUN yum makecache fast && \
yum install -y epel-release && \
yum install -y python python-pip sudo bash iproute yum-plugin-ovl util-linux systemd-sysv initscripts && \
sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf && \
yum clean all && rm -rf /var/cache/yum && \
touch /etc/sysconfig/network && \
localedef -f UTF-8 -i en_US en_US.UTF-8 && \
python -m pip install --upgrade --no-cache-dir pip==20.3.4

RUN cp /bin/true /sbin/agetty

STOPSIGNAL SIGRTMIN+3

VOLUME ["/sys/fs/cgroup"]

CMD ["/sbin/init"]
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ minio_client_bin: /usr/local/bin/mc
minio_hostname: "{{ ansible_fqdn }}"

# MinIO release to install.
minio_server_release: "RELEASE.2022-06-07T00-33-41Z"
minio_server_release: "RELEASE.2022-08-25T07-17-05Z"

# MinIO client release to install.
minio_client_release: "RELEASE.2022-05-09T04-08-26Z"
minio_client_release: "RELEASE.2022-08-23T05-45-20Z"

# Runtime user and group for the MinIO server service
minio_user: minio
Expand Down
1 change: 0 additions & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
name: minio
state: restarted
notify: Check MinIO WebUI
become: true

- name: Check MinIO WebUI
uri:
Expand Down
5 changes: 2 additions & 3 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
galaxy_info:
role_name: minio
autho: MinIO Development
author: Andrea Tosatto
author: minio
description: Install and configure the MinIO S3 compatible object storage server on RHEL/CentOS and Debian/Ubuntu
license: MIT
min_ansible_version: 2.9
min_ansible_version: "2.9"
platforms:
- name: "Ubuntu"
versions:
Expand Down
4 changes: 2 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ driver:

platforms:
- name: test-docker-centos7-minio
image: ghcr.io/pavelpikta/docker-systemd/centos7:latest
image: quay.io/minio/centos-systemd:7
privileged: true
pre_build_image: true
command: /sbin/init
Expand All @@ -28,7 +28,7 @@ platforms:
- rhel_family

- name: test-docker-ubuntu2004-minio
image: ghcr.io/pavelpikta/docker-systemd/ubuntu-20.04:latest
image: quay.io/minio/ubuntu-systemd:20.04
command: /sbin/init
privileged: true
pre_build_image: true
Expand Down
1 change: 0 additions & 1 deletion tasks/install-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,4 @@
name: minio
enabled: true
state: started
become: true
notify: Check MinIO WebUI
58 changes: 58 additions & 0 deletions ubuntu-20.04.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
FROM ubuntu:20.04

ENV container=docker \
LANGUAGE=en_US.UTF-8 \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 \
TERM=xterm \
DEBIAN_FRONTEND="noninteractive"

ARG PKGS_LIST="apt-utils \
bash \
ca-certificates \
dbus \
dbus-user-session \
gnupg \
iproute2 \
libsystemd-dev \
locales \
python3 \
python3-pip \
python3-setuptools \
rsyslog \
sudo \
systemd \
systemd-cron"

# Enable all repositories
RUN sed -i 's/# deb/deb/g' /etc/apt/sources.list

RUN apt-get update && \
apt-get install -y --no-install-recommends ${PKGS_LIST} && \
apt-get autoremove && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
locale-gen en_US.UTF-8 && \
pip3 install --upgrade --no-cache-dir pip

RUN rm -Rf /var/lib/apt/lists/* \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& rm -f /lib/systemd/system/multi-user.target.wants/* \
&& rm -f /etc/systemd/system/*.wants/* \
&& rm -f /lib/systemd/system/local-fs.target.wants/* \
&& rm -f /lib/systemd/system/sockets.target.wants/*udev* \
&& rm -f /lib/systemd/system/sockets.target.wants/*initctl* \
&& rm -f /lib/systemd/system/basic.target.wants/* \
&& rm -f /lib/systemd/system/anaconda.target.wants/* \
&& rm -f /lib/systemd/system/plymouth* \
&& rm -f /lib/systemd/system/systemd-update-utmp* \
&& rm -f /lib/systemd/system/systemd*udev* \
&& rm -f /lib/systemd/system/getty.target

RUN cp /bin/true /sbin/agetty

STOPSIGNAL SIGRTMIN+3

VOLUME ["/sys/fs/cgroup"]

CMD ["/sbin/init"]
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载