Sign inSign up

thunderboltlei/centos-compile-beam

By thunderboltlei

•Updated over 4 years ago

Image
0

66

thunderboltlei/centos-compile-beam repository overview

⁠1、Component Version:

centos8.4 + java11 + anaconda3(2021.05) + mysql8.0.26 + redis6.2.6

$ mkdir -p /opt/developments/
$ cd /opt/developments/anaconda
$ wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2021.05-Linux-x86_64.sh
$ chmod +x Anaconda3-2021.05-Linux-x86_64.sh
$ ./Anaconda3-2021.05-Linux-x86_64.sh
>>> yes
>>>  /opt/developments/anaconda
>>> yes
⁠(1)redis 配置(已完成)
  • 注释掉:bind 127.0.0.1
  • 修改:protected-mode yes 为 protected-mode no
  • 设置密码:requirepass xxxxxxxxx
⁠(2)mysql(自启动)
  • 取消自启动:systemctl disable mysqld
  • 用户/密码:anonymous / anonymous
⁠2、容器运行及端口映射
创建自定义网络
$ docker network create --subnet=<子网地址> <网络名称>
例:docker network create --subnet=172.18.0.0/16 x8x_bridge

模板:$ docker run --privileged -d -p <端口映射 1> ... -p <端口映射 n>  --restart="always" <用户名>/<repository name>:<tag name> /usr/sbin/init
实例:$ docker run --network x8x_bridge --hostname k8smaster --ip 172.18.0.2 --privileged -d -p 3306:3306 -p 6379:6379 --restart="always" thunderboltlei/centos-compile-beam:202208011608 /usr/sbin/init

模板:$ docker exec -it <container id> /bin/bash

Tag summary

Content type

Image

Digest

sha256:1a4d70607…

Size

2.7 GB

Last updated

over 4 years ago

docker pull thunderboltlei/centos-compile-beam:202208011608