vaultier is unusable for docker/ubuntu/debian (python)

  • Last Update :
  • Techknowledgy :

i followed these guides https://www.vaultier.org/install/

sudo docker run - t - i--name vaultier - p 80: 8088 rclick / vaultier: latest - e "VAULTIER_DOMAIN=vaultier.bla.com"
Error: invalid value
for -e 'VAULTIER_DOMAIN=vaultier.bla.com': bad logging level name 'VAULTIER_DOMAIN=vaultier.bla.com'
For help, use / usr / bin / supervisord - h

Using Ubuntu:

Traceback (most recent call last):
File "/opt/vaultier/venv/bin/vaultier", line 5, in <module>
   from pkg_resources import load_entry_point
   File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pkg_resources.py", line 2720, in <module>
      parse_requirements(__requires__), Environment()
      File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pkg_resources.py", line 592, in resolve
      raise VersionConflict(dist,req) # XXX put more info here
      pkg_resources.VersionConflict: (six 1.4.1 (/opt/vaultier/venv/lib/python2.7/site-packages), Requirement.parse('six>=1.7'))

Using Debian:

Traceback(most recent call last):
   File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/commands/install.py", line 295, in run
requirement_set.install(install_options, global_options, root = options.root_path)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, * args, ** kwargs)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/req.py", line 707, in install
cwd = self.source_dir, filter_stdout = self._filter_install, show_stdout = False)
File "/opt/vaultier/venv/local/lib/python2.7/site-packages/pip/util.py", line 716, in call_subprocess %
   (command_desc, proc.returncode, cwd))
InstallationError: Command / opt / vaultier / venv / bin / python2 - c "import setuptools, tokenize;__file__='/tmp/pip-build-08foqW/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install--record / tmp / pip - UUDq9M - record / install - record.txt--single - version - externally - managed--compile--install - headers / opt / vaultier / venv / include / site / python2 .7 failed with error code 1 in /tmp/pip - build - 08 foqW / psycopg2

Suggestion : 2

Docker Desktop helps you build, share, and run containers easily on Mac and Windows as you do on Linux. We are excited to share that Docker Desktop for Linux is now GA. For more information, see Docker Desktop for Linux.,Docker Engine is installed and running. The docker group is created but no users are added to it. You need to use sudo to run Docker commands. Continue to Linux postinstall to allow non-privileged users to run Docker commands and for other optional configuration steps.,This example downloads the script from get.docker.com and runs it to install the latest stable release of Docker on Linux:,Docker Engine is installed and running. The docker group is created but no users are added to it. You need to use sudo to run Docker commands. Continue to Post-installation steps for Linux to allow non-privileged users to run Docker commands and for other optional configuration steps.

$ sudo apt - get remove docker docker - engine docker.io containerd runc
$ sudo apt - get update

$ sudo apt - get install\
ca - certificates\
curl\
gnupg\
lsb - release
$ sudo mkdir - p / etc / apt / keyrings
$ curl - fsSL https: //download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
$ echo\
   "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee / etc / apt / sources.list.d / docker.list > /dev/null
 $ sudo apt - get update
 $ sudo apt - get install docker - ce docker - ce - cli containerd.io docker - compose - plugin
$ apt - cache madison docker - ce

docker - ce | 5: 20.10 .16~3 - 0~ubuntu - jammy | https: //download.docker.com/linux/ubuntu jammy/stable amd64 Packages
   docker - ce | 5: 20.10 .15~3 - 0~ubuntu - jammy | https: //download.docker.com/linux/ubuntu jammy/stable amd64 Packages
   docker - ce | 5: 20.10 .14~3 - 0~ubuntu - jammy | https: //download.docker.com/linux/ubuntu jammy/stable amd64 Packages
   docker - ce | 5: 20.10 .13~3 - 0~ubuntu - jammy | https: //download.docker.com/linux/ubuntu jammy/stable amd64 Packages

Suggestion : 3

which stopped debconf reporting on the missing terminal and also stopped the tzdata installer from opening the locations menu during the Dockerfile build.,Finally, install tzdata normally: RUN apt-get update && apt-get install -y tzdata,Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.,Then simply install tzdata in your image.

One line only:

RUN DEBIAN_FRONTEND = noninteractive TZ = Etc / UTC apt - get - y install tzdata

You can use ARG and ENV directives to your advantage:

ARG DEBIAN_FRONTEND = noninteractive
ENV TZ = Europe / Moscow
RUN apt - get install - y tzdata

You need to execute serie of commands:

    # set noninteractive installation
    export DEBIAN_FRONTEND = noninteractive
    # install tzdata package
    apt - get install - y tzdata
    # set your timezone
    ln - fs / usr / share / zoneinfo / America / New_York / etc / localtime
    dpkg - reconfigure--frontend noninteractive tzdata

The best way is to create script, copy the script to container and execute it In Dockerfile:

ADD yourscript.sh / yourscript.sh
RUN / yourscript.sh

docker-compose.yml

version: '3.7'
services:
   timezone:
   build: .
environment:
   -TZ = America / New_York -
   DEBIAN_FRONTEND = noninteractive

Dockerfile

FROM ubuntu: 18.04
RUN apt - get update && apt - get install - y tzdata
# Testing command: Print the date.It will be in the timezone set from the compose file.
CMD date

To test:

docker - compose build timezone

Right:

RUN apt - get update && DEBIAN_FRONTEND = "noninteractive"
TZ = "America/New_York"
apt - get install - y tzdata

Wrong:

RUN DEBIAN_FRONTEND = "noninteractive"
TZ = "America/New_York"
apt - get update && apt - get install - y tzdata

From a simple Dockerfile it works but it might require further tweaking (tz is 19:25 but 16:25 inside docker, idc now because it is for automation purpose on a ARM64 jetson nano)

RUN
export TZ = Europe / Paris
RUN pip3 install - U Cython contextlib2 pillow lxml jupyter matplotlib
RUN DEBIAN_FRONTEND = noninteractive apt - get install protobuf - compiler python - pil python - lxml python - tk - y
Unpacking protobuf - compiler(3.0 .0 - 9.1 ubuntu1)...
   Setting up python - chardet(3.0 .4 - 1)...
   Setting up tzdata(2019 c - 0 ubuntu0 .18 .04)...

   Current
default time zone: 'Etc/UTC'
Local time is now: Wed Apr 22 16: 25: 17 UTC 2020.
Universal Time is now: Wed Apr 22 16: 25: 17 UTC 2020.
Run 'dpkg-reconfigure tzdata'
if you wish to change it.

Setting up libxss1: arm64(1: 1.2 .2 - 1)...