Support out of support in docker environment using centos6

Cause

Since the Docker environment that I was able to use until now could not be launched from the beginning of December, I checked it and found that the epel package could not be introduced due to the end of life of centos 6 at the end of November. It was.

Change before

RUN rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

The repository location was 404, so I changed it to refer to the archive directory.

After change

FROM centos:6
RUN sed -i "s|#baseurl=|baseurl=|g" /etc/yum.repos.d/CentOS-Base.repo
RUN sed -i "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-Base.repo
RUN sed -i "s|http://mirror\.centos\.org/centos/\$releasever|https://vault\.centos\.org/6.10|g" /etc/yum.repos.d/CentOS-Base.repo
RUN rpm -ivh http://dl.fedoraproject.org/pub/archive/epel/6/i386/epel-release-6-8.noarch.rpm

Referenced articles

http://smoogespace.blogspot.com/2020/10/rhel-6centos-6scilin-6epel-6-end-of.html https://qiita.com/y-do/items/b23d24a647cb99528b16

I think it's best to update to centos7 when support is out, but there are some who can't because of adult circumstances. ..

Recommended Posts

Support out of support in docker environment using centos6
Self-hosting with Docker of AuteMuteUs in Windows environment
SSL in the local environment of Docker / Rails / puma
Construction of data analysis environment using Docker (personal memorandum)
Install by specifying the version of Django in the Docker environment
Configuration script for using docker in proxy environment on ubuntu 20.04.1
Install laravel/Dusk in docker environment (laravel6)
Check MySQL logs in Docker environment
Use MailHog for checking emails in the development environment (using Docker)
Build a browser test environment using Capybara in the Docker development environment
Create a web environment quickly using Docker
Alert slack with alert manager in Docker environment
Put Kanban in Docker of Raspberry Pi 3
[Docker] Use environment variables in Nginx conf
Build an environment of "API development + API verification using Swagger UI" with Docker
Use docker in proxy environment on ubuntu 20.04.1
Support for gdb errors in Docker containers
Edit Mysql with commands in Docker environment
How to execute with commands of normal development language in Docker development environment
Batch implementation in RubyOnRails environment using Digdag
Show Better Errors in Rails + Docker environment
Japanese setting of mysql in Docker container
[Rails5.2] Support for emoji of Mysql 5.7 in Docker (change character code to utf8mb4)
[Memo] Create a CentOS 8 environment easily with Docker
Create a Privoxy + Tor environment instantly using Docker
Just install Laravel8 on docker in PHP8 environment
(Basic authentication) environment variables in rails and Docker
[Rails] Run LINEBot in local environment using ngrok
Kaggle environment construction using official Docker and vscode
Procedure to change lower_case_table_names = 1 in MySQL 8.0 of CentOS 8.3
Improve the performance of your Docker development environment
Data management using volume in Docker (personal memorandum)
Implemented in Nuxt.js & Django using Docker [CRUD in Axios]
[Note] Struts2 environment construction using Gradle in Eclipse
Allow development in Eclipse environment using iPLAss SDK
A reminder of Docker and development environment construction
Prepare the environment of CentOS 8 with Sakura VPS
Docker × Laravel HTTPS (SSL) communication in local environment
Install Ubuntu 20.04 in virtual box on windows10 and build a development environment using docker
How to install Docker in the local environment of an existing Rails application [Rails 6 / MySQL 8]
Docker in LXD
Docker environment construction
I built an environment to execute unit tests using Oracle database (oracle12c) on the Docker in Docker (dind) image of GitLab-CI.
I tried using Docker because I don't want to pollute the local environment in Microsoft Teams tab development of MS Learn
Summary of frequently used commands in Rails and Docker
Json Request in Unit Test of Controller using MockMvc
Migration error after Activerecord association in Rails5 + Docker environment (2)
How to figure out how much disk Docker is using
Points stuck when running vite + Nginx in Docker environment
Docker the development environment of Ruby on Rails project
Build an environment of Ruby2.7.x + Rails6.0.x + MySQL8.0.x with Docker
Review the multilingual support (i18n) of the ios app in 3 minutes
Build Docker + Laravel PHP + Vue.js development environment in 5 minutes
Migration error after Activerecord association in Rails5 + Docker environment
[Note] Build a Python3 environment with Docker in EC2
Dramatically speed up slow bundle install in docker environment
Command memo to install xeyes in ubuntu docker environment
Try to build a Java development environment using Docker
Comfortable Docker environment created with WSL2 CentOS7 and Docker Desktop
Database environment construction with Docker in Spring boot (IntellJ)
[2021] Build a Docker + Vagrant environment for using React / TypeScript