Skip to content

Instantly share code, notes, and snippets.

https://tech.showmax.com/2019/10/how-ruby-can-surprise-you/
# install httpd24-httpd
https://unix.stackexchange.com/questions/138899/install-apache-2-4-on-centos-using-yum
# install httpd24-mod_ssl
yum --enablerepo=centos-sclo-rh-testing install httpd24-mod_ssl
# checking config
service httpd24-httpd configtest
FROM vtoanb/c7-systemd
RUN yum install -y \
ImageMagick \
ImageMagick-devel \
apr-devel \
apr-util-devel \
autoconf \
automake \
bison \
FROM centos:7
RUN yum install -y \
ImageMagick \
ImageMagick-devel \
apr-devel \
apr-util-devel \
autoconf \
automake \
bison \
for i in 2376 2379 2380 6443 9099 10250 10254; do
sudo firewall-cmd --zone=public --add-port=$i/tcp --permanent
done
sudo firewall-cmd --zone=public --add-port=30000-32767/tcp --permanent
for i in 8472 4789; do
sudo firewall-cmd --zone=public --add-port=$i/udp --permanent
done
FROM femtopixel/google-chrome-headless
ENV VERSION=v5.3.0 \
RUBY_VERSION=2.6.1
LABEL maintainer="Jay MOULIN <[email protected]> <http://twitter.com/MoulinJay>"
LABEL version="${VERSION}"
USER root
FROM femtopixel/google-chrome-headless
ENV VERSION=v5.3.0 \
RUBY_VERSION=2.6.1
LABEL maintainer="Jay MOULIN <[email protected]> <http://twitter.com/MoulinJay>"
LABEL version="${VERSION}"
USER root
@toanvv
toanvv / command
Last active October 22, 2019 03:24
docker run -ti \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
-v /tmp/$(mktemp -d):/run \
-p 8180:80 local/c7-systemd-httpd
docker run -ti \
--name mistyline \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
-v /tmp/$(mktemp -d):/run \
-v /toanvv/mistyline_registration/httpd/conf:/etc/httpd/conf \
FROM centos:7
ENV container docker
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/*;\
# K3s
## install
curl -sfL https://get.k3s.io | sh -
kubeconfig here:
- /etc/rancher/k3s/k3s.yaml
k3s kubectl get nodes
K3S_TOKEN is created at /var/lib/rancher/k3s/server/node-token on your server.