Giter Club home page Giter Club logo

installer's Introduction

Swarmpit installer

Swarmpit platform installer

For 1.9 release and older please refer to following guide

Run

Interactive mode

User is prompted to setup application from command line.

Example:

docker run -it --rm \
  --name swarmpit-installer \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  swarmpit/install:edge

Non-interactive mode

Setup is done based on environment variables passed to installer. Interactive mode must be set to 0 (disabled).

Example:

docker run -it --rm \
  --name swarmpit-installer \
  --volume /var/run/docker.sock:/var/run/docker.sock \
  -e INTERACTIVE=0 \
  -e STACK_NAME=swarmpit \
  -e APP_PORT=888 \
  swarmpit/install:edge

Parameters

Mandatory
  • INTERACTIVE - must be set to 0 (disabled)
Optional
  • STACK_NAME - default to swarmpit
  • APP_PORT - default to 888
  • DB_VOLUME_DRIVER - default to local

installer's People

Contributors

betacaroten avatar mrq1911 avatar nohaapav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

installer's Issues

Colima with docker and swarmpit

I am using macOs,

This is how i installed colima with docker:

brew update 
brew install colima 
brew install docker 
brew link docker   
colima start
# We have a cli at work that needs to be like that to make it  work
sudo rm -f /var/run/docker.sock /var/run/docker-cli.sock
sudo ln -s /Users/$USER/.colima/docker.sock /var/run/docker.sock 
docker is running with no problem.

docker swarm init to open the swarm manager works fine
This showing colima node active AVAILABILITY

docker node ls
1orm3d9rjf0n7xqrhinmvqcde *   colima     Ready     Active         Leader           20.10.11
Start swarmpit:
docker run -it --rm --name swarmpit-installer --volume /var/run/docker.sock:/var/run/docker.sock -e INTERACTIVE=0 -e ADMIN_USERNAME=admin -e ADMIN_PASSWORD=swarmpit -e APP_PORT=8082 swarmpit/install:1.9

This ends up by failing.

Screen Shot 2022-10-21 at 6 45 27 PM

by checking logs of those services:

swarmpit_agent     -- ent:2.2
swarmpit_app       -- pit:1.9
swarmpit_db        -- b:2.3.0
swarmpit_influxdb  -- xdb:1.7

docker service logs [service]
Actually logs are not clear enough any hints ?

Volume drivers containing slash do not work

Hi!
We are using rexray/rbd as a volume driver. When I enter it, there is an error message appearing during install and my volume is created with default local driver.

You can fix this issue with replacing slashes on line 138 as sed s's separators with something else, that will unlikely be used in plugin name (I use '#'):
sed -i 's#driver: local#'"driver: $VOLUME_DRIVER"'#' swarmpit/docker-compose.yml

Also, I would suggest to add
set -eo pipefail
At the beginning of the script to make sure your script "fails fast" and doesn't postpone the issue to the later stages. Read here more about it https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/

Regards,

Rodion

swarmpit installer SELinux fail on Fedora Server 32

When doing the copy and paste install on Fedora Server 32 I get a failure due to SELinux.

I execute this command as root user:

docker run -it --rm
--name swarmpit-installer
--volume /var/run/docker.sock:/var/run/docker.sock
swarmpit/install:1.9

I get this error:

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/images/create?fromImage=lucashalbert%2Fcurl&tag=7.67.0-r0: dial unix /var/run/docker.sock: connect: permission denied
PREPARATION FAILED!

Note, this is NOT a host user permissions error, the issue is that the container cannot connect to the docker daemon through the volume bind mount.

Workaround:

setenforce 0

The problem seems to be an SELinux based issue, however I do not see any SELinux polices in the docker or moby RPMs, so the policies are managed somewhere else.

Error while starting swarmpit

Hello,

I'm trying to install swarmpit on my Ubuntu VM, all goes well until starting swarmpit.
Error's occure which I can't figure out yet.

Welcome to Swarmpit
Version: 1.9
Branch: 1.9

Preparing dependencies
7.67.0-r0: Pulling from lucashalbert/curl
Digest: sha256:d30a7ac1114b667e95976461f1b5c345fbc7545a6787cd890d134c76b6b99849
Status: Image is up to date for lucashalbert/curl:7.67.0-r0
docker.io/lucashalbert/curl:7.67.0-r0
DONE.

Preparing installation
Cloning into 'swarmpit'...
remote: Enumerating objects: 106, done.
remote: Counting objects: 100% (106/106), done.
remote: Compressing objects: 100% (78/78), done.
remote: Total 19906 (delta 34), reused 61 (delta 16), pack-reused 19800
Receiving objects: 100% (19906/19906), 4.91 MiB | 7.38 MiB/s, done.
Resolving deltas: 100% (11895/11895), done.
Note: switching to '91987c59bc3209120f6fe514c14572129771e60b'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

DONE.

Application setup
Enter stack name [swarmpit]:
Enter application port [888]:
Enter database volume driver [local]:
Enter admin username [admin]:
Enter admin password (min 8 characters long): Test12345
DONE.

Application deployment
Creating service swarmpit_agent
Creating service swarmpit_app
Creating service swarmpit_db
Creating service swarmpit_influxdb
DONE.

Starting swarmpit...docker: Error response from daemon: error creating external connectivity network: cannot restrict inter-container communication: open /proc/sys/net/bridge/bridge-nf-call-iptables: permission denied.
sh: 200: unknown operand
.docker: Error response from daemon: error creating external connectivity network: cannot restrict inter-container communication: open /proc/sys/net/bridge/bridge-nf-call-iptables: permission denied.
sh: 200: unknown operand
.docker: Error response from daemon: error creating external connectivity network: cannot restrict inter-container communication: open /proc/sys/net/bridge/bridge-nf-call-iptables: permission denied.
ERRO[0009] error waiting for container: context canceled
sh: 200: unknown operand
.docker: Error response from daemon: error creating external connectivity network: cannot restrict inter-container communication: open /proc/sys/net/bridge/bridge-nf-call-iptables: permission denied.
ERRO[0006] error waiting for container: context canceled
sh: 200: unknown operand
.docker: Error response from daemon: failed to get network during CreateEndpoint: network jq0q6t6ieyj4z7j0q6v2i8971 not found.
sh: 200: unknown operand

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.