Packer
-
Packer is used to build image from a base image, perform provisions and store (commit) the final image.
-
We use provisioners and Packer templates to do the actual work to create the final image.
-
We use Ansible for provisioning.
--[[ | |
This file is part of darktable, | |
Copyright 2023 by Romuald du Song. | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, |
Packer
Packer is used to build image from a base image, perform provisions and store (commit) the final image.
We use provisioners and Packer templates to do the actual work to create the final image.
We use Ansible for provisioning.
#!/usr/bin/ruby | |
require 'socket' | |
PROCESS_METRICS = { | |
'Uptime_sec' => %w(uptime seconds), | |
'ConnRate' => %w(connection_rate connections rate), | |
'SessRate' => %w(session_rate sessions rate), | |
'SslFrontendKeyRate' => %w(sslkey_rate lookups rate), | |
'SslCacheLookups' => %w(sslcache_lookups lookups counter), |
[1] 09 Jul 20:51:59.704 * Module [<builtin>] loaded 154 commands. | |
[1] 09 Jul 20:51:59.705 * Loading new [/opt/krmt/geo.so] module. | |
[1] 09 Jul 20:51:59.705 * Added command geoadd [/opt/krmt/geo.so] | |
[1] 09 Jul 20:51:59.705 * Added command georadius [/opt/krmt/geo.so] | |
[1] 09 Jul 20:51:59.705 * Added command georadiusbymember [/opt/krmt/geo.so] | |
[1] 09 Jul 20:51:59.705 * Added command geoencode [/opt/krmt/geo.so] | |
[1] 09 Jul 20:51:59.705 * Added command geodecode [/opt/krmt/geo.so] | |
[1] 09 Jul 20:51:59.705 * Module [/opt/krmt/geo.so] loaded 5 commands. | |
[1] 09 Jul 20:51:59.705 * Running load function of module [/opt/krmt/geo.so]. | |
_._ |
# see https://github.com/postrank-labs/goliath/wiki/HAProxy | |
global | |
pidfile /var/run/haproxy.pid | |
log 127.0.0.1 local0 info | |
maxconn 64000 | |
defaults | |
clitimeout 60000 # maximum inactivity time on the client side | |
srvtimeout 60000 # maximum inactivity time on the server side |
# | |
# | |
FROM ubuntu:latest | |
RUN apt-get update | |
RUN apt-get install -y ruby1.9.1 rubygems git | |
RUN apt-get clean | |
RUN gem install bundler | |
RUN locale-gen en_US en_US.UTF-8 | |
EXPOSE 8080 |