Git Product home page Git Product logo

docker-gitolite's People

Contributors

albers avatar jgiannuzzi avatar mrfreezeex avatar tujh-rf 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-gitolite's Issues

Update base alpine image

When running trivy on this gitolite dockerhub image:

% docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v trivy-cache:/root/.cache/ aquasec/trivy i jgiannuzzi/gitolite
2021-07-30T21:31:51.732Z	INFO	Detected OS: alpine
2021-07-30T21:31:51.732Z	INFO	Detecting Alpine vulnerabilities...
2021-07-30T21:31:51.733Z	INFO	Number of language-specific files: 0
2021-07-30T21:31:51.733Z	WARN	This OS version is no longer supported by the distribution: alpine 3.10.1

[...]

It appears the base image alpine version (3.10) is not supported anymore by alpine (since 2021-05-01).

It would be safer to use a fresher alpine base image.

[wishlist] Add option to use custom gitolite.rc

As far as I can tell {experiments, but no pointers to gitolite
documentation}, gitolite setup command overrides whatever
/var/lib/git/.gitolite.rc file was there, as such following
Dockerfile

FROM jgiannuzzi/gitolite
COPY gitolite.rc /var/lib/git/.gitolite.rc

does not work as intended. Could you please add option to provide
custom .gitolite.rc?

"Unsupported option" sshd_config errors on container start

Using image 0fd0cb87b4cd, when I start the container I get the following errors in the logs and the container immediately exits:

/etc/ssh/sshd_config line 65: Unsupported option KerberosAuthentication
/etc/ssh/sshd_config line 71: Unsupported option GSSAPIAuthentication

I'm having a hard time debugging it. I've been running this thing for a while now with no issues, but it has been months since I've last pulled down an image. Anyone know what might be happening?

Question: For loop?

Hey there, thanks for building this. What's the for loop for? Why not just use the strongest elliptic curve encryption available?

Add FAQ for use image in podman

If someone is using podman to run this image, don't forget to add the exec option when mounting the gitolite-git volume like this:

podman run -d --privileged --name gitolite -p 2200:22 -v gitolite-sshkeys:/etc/ssh/keys -v gitolite-git:/var/lib/git:exec jgiannuzzi/gitolite

Without this, all hooks will not work.

Version using docker-compose.yml?

I have been trying to run this container from a docker-compose.yml file without success. It feels like I am close! But ultimately I get denied access over SSH.

Here is the file:

version: "3"
services:
  gitolite:
    image: jgiannuzzi/gitolite
    container_name: gitolite
    ports:
      - "22:22"
    environment:
      - SSH_KEY="$KEY"
      - SSH_KEY_NAME="$NAME"
    volumes:
      - gitolite-sshkeys:/etc/ssh/keys
      - gitolite-git:/var/lib/git
volumes:
  gitolite-sshkeys:
  gitolite-git:

$KEY and $NAME are replaced with the bash script:

KEY=$(cat ~/.ssh/id_rsa.pub) NAME=$(whoami) envsubst <docker-compose.ymt >docker-compose.yml

I am then denied access with the following error:

adam$ git clone git@localhost:gitolite-admin
Cloning into 'gitolite-admin'...
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is SHA256:............
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
git@localhost: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Any ideas? Thanks!

sshd logs

i'm trying to debug an SSH authentication issue. How can I get server-side logs?

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.