Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CRG-CNAG/docker-centos-perlbrew
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: biocorecrg/docker-amazonlinux-perlbrew
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.

Commits on May 21, 2021

  1. upgrade versions

    toniher committed May 21, 2021
    Copy the full SHA
    933c654 View commit details
  2. versions

    toniher committed May 21, 2021
    Copy the full SHA
    5c36e22 View commit details
  3. yum-utils

    toniher committed May 21, 2021
    Copy the full SHA
    b998f2f View commit details

Commits on Nov 29, 2021

  1. Update first

    toniher committed Nov 29, 2021
    Copy the full SHA
    88821a1 View commit details

Commits on Jan 11, 2023

  1. Update README.md

    toniher authored Jan 11, 2023
    Copy the full SHA
    e815b27 View commit details

Commits on Feb 3, 2023

  1. Update docker.yml

    toniher committed Feb 3, 2023
    Copy the full SHA
    9656697 View commit details
  2. Update docker.yml

    toniher authored Feb 3, 2023
    Copy the full SHA
    a5f3446 View commit details

Commits on Aug 22, 2023

  1. upgrade maven

    toniher committed Aug 22, 2023
    Copy the full SHA
    00a015e View commit details
  2. ghcr

    toniher committed Aug 22, 2023
    Copy the full SHA
    0e6ee0c View commit details

Commits on Aug 25, 2023

  1. Update docker.yml

    toniher authored Aug 25, 2023
    Copy the full SHA
    8ea5def View commit details

Commits on Jun 9, 2024

  1. Update docker.yml

    upgrade versions
    toniher authored Jun 9, 2024
    Copy the full SHA
    33fc172 View commit details

Commits on Dec 17, 2024

  1. Upgrade base

    toniher committed Dec 17, 2024
    Copy the full SHA
    c28ef5e View commit details
  2. Update Dockerfile

    toniher authored Dec 17, 2024
    Copy the full SHA
    6414420 View commit details
  3. Upgrade perl

    toniher committed Dec 17, 2024
    Copy the full SHA
    607d8da View commit details
  4. CPAN an PatchPerl

    toniher committed Dec 17, 2024
    Copy the full SHA
    0d61fba View commit details
  5. sic

    toniher committed Dec 17, 2024
    Copy the full SHA
    a2b2f2b View commit details

Commits on Dec 18, 2024

  1. hack to make it work

    toniher committed Dec 18, 2024
    Copy the full SHA
    0346397 View commit details

Commits on Dec 19, 2024

  1. fix (sic)

    toniher committed Dec 19, 2024
    Copy the full SHA
    eb960a2 View commit details
  2. upgrade stuff

    toniher committed Dec 19, 2024
    Copy the full SHA
    a368113 View commit details

Commits on Feb 5, 2025

  1. Update docker.yml

    toniher authored Feb 5, 2025
    Copy the full SHA
    4446ad0 View commit details

Commits on Feb 6, 2025

  1. Update docker.yml

    toniher authored Feb 6, 2025
    Copy the full SHA
    5484a31 View commit details
  2. Update docker.yml

    toniher authored Feb 6, 2025
    Copy the full SHA
    148a748 View commit details

Commits on Feb 10, 2025

  1. update Docker

    toniher committed Feb 10, 2025
    Copy the full SHA
    c292302 View commit details
  2. Update docker.yml

    toniher authored Feb 10, 2025
    Copy the full SHA
    61d61a4 View commit details

Commits on Feb 12, 2025

  1. Copy the full SHA
    95ba87f View commit details
  2. recognize name

    toniher committed Feb 12, 2025
    Copy the full SHA
    08a9625 View commit details
74 changes: 74 additions & 0 deletions .github/workflows/docker.2023.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Publish Docker images - 2023
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 6'
env:
DOCKER_IMAGE_PREFIX: amazonlinux-perlbrew
jobs:
push_to_registries:
name: Push Docker image to multiple registries
runs-on: ubuntu-latest
# runs-on:
# group: perlbrew
permissions:
packages: write
contents: read
strategy:
fail-fast: true
max-parallel: 1
matrix:
branch: ['2023']
folder: ['base', 'pyenv', 'pyenv3', 'pyenv23', 'pyenv-java', 'pyenv3-java', 'pyenv23-java']
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Tune QEMU
run: |
docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-* && docker run --privileged --rm tonistiigi/binfmt --install all
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Sets env vars for Docker image
run: |
echo "DOCKER_IMAGE_TAG=${{env.DOCKER_IMAGE_PREFIX}}" >> $GITHUB_ENV
if: ${{ matrix.folder == 'base' }}
- name: Sets env vars for Docker image
run: |
echo "DOCKER_IMAGE_TAG=${{env.DOCKER_IMAGE_PREFIX}}-${{ matrix.folder }}" >> $GITHUB_ENV
if: ${{ matrix.folder != 'base' }}
- name: Sets env vars for Docker image
run: |
echo "DOCKER_IMAGE_BRANCH=latest" >> $GITHUB_ENV
if: ${{ matrix.branch == 'main' }}
- name: Sets env vars for Docker image
run: |
echo "DOCKER_IMAGE_BRANCH=${{ matrix.branch }}" >> $GITHUB_ENV
if: ${{ matrix.branch != 'main' }}
- name: Push Docker
uses: docker/build-push-action@v6
with:
file: ./${{ matrix.folder }}/Dockerfile
context: ./${{ matrix.folder }}
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ secrets.DOCKERHUB_ACCOUNT }}/${{env.DOCKER_IMAGE_TAG}}:${{ env.DOCKER_IMAGE_BRANCH }}
ghcr.io/${{ github.repository_owner }}/${{env.DOCKER_IMAGE_TAG}}:${{ env.DOCKER_IMAGE_BRANCH }}
74 changes: 74 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Publish Docker images
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
env:
DOCKER_IMAGE_PREFIX: amazonlinux-perlbrew
jobs:
push_to_registries:
name: Push Docker image to multiple registries
#runs-on: ubuntu-latest
runs-on:
group: perlbrew
permissions:
packages: write
contents: read
strategy:
fail-fast: true
max-parallel: 1
matrix:
branch: ['2']
folder: ['base', 'pyenv', 'pyenv3', 'pyenv23', 'pyenv-java', 'pyenv3-java', 'pyenv23-java']
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Tune QEMU
run: |
docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-* && docker run --privileged --rm tonistiigi/binfmt --install all
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Sets env vars for Docker image
run: |
echo "DOCKER_IMAGE_TAG=${{env.DOCKER_IMAGE_PREFIX}}" >> $GITHUB_ENV
if: ${{ matrix.folder == 'base' }}
- name: Sets env vars for Docker image
run: |
echo "DOCKER_IMAGE_TAG=${{env.DOCKER_IMAGE_PREFIX}}-${{ matrix.folder }}" >> $GITHUB_ENV
if: ${{ matrix.folder != 'base' }}
- name: Sets env vars for Docker image
run: |
echo "DOCKER_IMAGE_BRANCH=latest" >> $GITHUB_ENV
if: ${{ matrix.branch == 'main' }}
- name: Sets env vars for Docker image
run: |
echo "DOCKER_IMAGE_BRANCH=${{ matrix.branch }}" >> $GITHUB_ENV
if: ${{ matrix.branch != 'main' }}
- name: Push Docker
uses: docker/build-push-action@v6
with:
file: ./${{ matrix.folder }}/Dockerfile
context: ./${{ matrix.folder }}
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ secrets.DOCKERHUB_ACCOUNT }}/${{env.DOCKER_IMAGE_TAG}}:${{ env.DOCKER_IMAGE_BRANCH }}
ghcr.io/${{ github.repository_owner }}/${{env.DOCKER_IMAGE_TAG}}:${{ env.DOCKER_IMAGE_BRANCH }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CentOS Perlbrew images
# AmazonLinux Perlbrew images

Images for running Perlbrew scripts using CentOS.
Images for running Perlbrew scripts using AmazonLinux.

20 changes: 11 additions & 9 deletions base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM centos:centos7

# File Author / Maintainer
MAINTAINER Toni Hermoso Pulido <toni.hermoso@crg.eu>
FROM amazonlinux:2

ARG PERLBREW_ROOT=/usr/local/perl
ARG PERL_VERSION=5.24.1
ARG PERL_VERSION=5.32.1
# Enable perl build options. Example: --build-arg PERL_BUILD="--thread --debug"
ARG PERL_BUILD=
ARG PERL_BUILD=--thread

# Base Perl and builddep
RUN yum install -y perl
RUN yum update -y
RUN yum install -y perl yum-utils
RUN yum-builddep -y perl
RUN yum install -y bzip2 zip procps
RUN yum groupinstall -y 'Development Tools'
@@ -21,14 +19,18 @@ RUN bash -c '\curl -L https://install.perlbrew.pl | bash'
ENV PATH $PERLBREW_ROOT/bin:$PATH
ENV PERLBREW_PATH $PERLBREW_ROOT/bin

RUN yum install -y perl-ExtUtils-MakeMaker perl-CPAN perl-Module-Pluggable
ENV PERL_MM_USE_DEFAULT=1
RUN cpan -i Test::More Devel::PatchPerl; exit 0 # Hack to make it work
RUN perlbrew install-patchperl
RUN perlbrew --notest install $PERL_BUILD perl-$PERL_VERSION
RUN perlbrew install-cpanm
RUN bash -c 'source $PERLBREW_ROOT/etc/bashrc'

ENV PERLBREW_ROOT $PERLBREW_ROOT
ENV PATH $PERLBREW_ROOT/perls/perl-$PERL_VERSION/bin:$PATH
ENV PERLBREW_PERL perl-$PERL_VERSION
ENV PERLBREW_MANPATH $PELRBREW_ROOT/perls/perl-$PERL_VERSION/man
ENV PERLBREW_MANPATH $PERLBREW_ROOT/perls/perl-$PERL_VERSION/man
ENV PERLBREW_SKIP_INIT 1

RUN ln -s $PERLBREW_ROOT/perls/perl-$PERL_VERSION/bin/perl /usr/local/bin/perl
71 changes: 0 additions & 71 deletions build.sh

This file was deleted.

Loading