profile
viewpoint
Kostya Kostyushko Kostanos Expetitle Ivano-Frankivs, Ukraine https://www.expetitle.com

Kostanos/meteor-autoform-daysofweek 2

Days of week multiple selector

Kostanos/cheapfl 1

Find cheap flights

Kostanos/domg 1

Web based docker manager

Kostanos/anet-board 0

This is a board definition which works in Arduino IDE 1.8.x for Anet Board targets.

Kostanos/Autoreminder 0

Magento Autoreminders Module

Kostanos/casper4-i18n 0

The default theme for Ghost (translated)

Kostanos/common_entities 0

Define common entities for everyday use

Kostanos/django-bootstrap-toolkit 0

Bootstrap support for Django projects

Kostanos/django-mongoadmin 0

Integrates mongodb into django's admin

issue commentalpine-docker/git

Any good example how to add .ssh key from environment variable?

The same as with previous issue that I opened. The solution for this already exists, you just missing it in alpine/git image, and it would be great to have it integrated, without needing to run all this from inside of container.

At this moment, the only way to resolve this issue with this image is by running it inside container.

Something like this:

        - name: my-init
          image: alpine/git
          imagePullPolicy: IfNotPresent
          command: [ "/bin/sh", "-e", "-c" ]
          args:
            - mkdir -p /root/.ssh;
              echo "Generate /root/.ssh/known_hosts";
              touch /root/.ssh/known_hosts;
              ssh-keyscan -H ${HOSTNAME} >> ~/.ssh/known_hosts;
              echo "Create id_rsa";
              echo $DEPLOY_KEY | sed "s/\\\n/\n/g" > /root/.ssh/id_rsa;
              chmod 400 -R /root/.ssh;
              ls -ls /root/.ssh/;
              echo "Cloning Repository";
              git clone -b "{{BRANCH}}" --single-branch -- ${GIT_REPO} /data;
              ls -ls /data;
              echo "Done";

Absense of this and Host verification functionality in this image, makes this image practically useless, and you can use it only in some very specific scenarious.

But it is up to you just to close the topic instead of develop the solution.

Kostanos

comment created time in 2 months

issue commentalpine-docker/git

Host key verification failed when trying to clone in kubernetes

@ozbillwang it is obvious functionality, my topic here that it requires user to run commands inside of a container, something like:

mkdir -p /root/.ssh
ssh-keyscan -H $HOSTNAME ~/.ssh/known_hosts

I didn't open this issue to find the solution, as it is widely available in thousands examples. My point of this issue, that this image alpine/git is missing the basic things, that could simplify its use in kubernetes or similar orchestrations systems.

Kostanos

comment created time in 2 months

issue openedalpine-docker/git

Host key verification failed when trying to clone in kubernetes

Hey guys. I'm trying to use this docker image in kubernetes environment.

This is my seetup:

      initContainers:
        - name: repo-init
          image: alpine/git
          args:
            - clone
            - -b "{{BRANCH}}"
            - --single-branch
            - --
            - git@bitbucket.org:{{MY_REPO}}
            - /data
          volumeMounts:
            - mountPath: /data
              name: repo-files
            - mountPath: /root/.ssh
              name: ssh-secret-files
              readOnly: true

And I'm getting this error:

Cloning into '/data'...
Host key verification failed.
fatal: Could not read from remote repository.

So, it seems we are missing to generate known_hosts file Any example of how to accomplish it with this image?

created time in 2 months

issue openedalpine-docker/git

Any good example how to add .ssh key from environment variable?

Anyone could provide an easy example to mount .ssh/id_rsa from environment variable?

It is very useful if rsa key is coming from kubernetes secret file or in other way.

created time in 2 months

push eventSmartbuyer/cookie-to-bearer-tyk-middleware

Kostya Kostyushko

commit sha 5292ec66b5e95337bfe5a8d74b00511d604290cb

Fixed JavaScript version

view details

push time in 2 months

push eventSmartbuyer/cookie-to-bearer-tyk-middleware

Kostya Kostyushko

commit sha 8b27816bf8c6cf7594935992f6840b550ce41b85

Fixed error when Cookie not exists

view details

push time in 2 months

issue openedsindresorhus/yn

Can't use with require

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /root/app/node_modules/yn/index.js
require() of ES modules is not supported.

created time in 3 months

startedJohnLindahlTech/cookie-to-bearer-tyk-middleware

started time in 3 months

more