dls-controls / dev-c7

A container for running the DLS Controls RHEL7 developer environment on a RHEL8 workstation
Apache License 2.0
0 stars 2 forks source link

Git HTTPS error has returned #94

Open aawdls opened 1 year ago

aawdls commented 1 year ago

Despite the section in the Dockerfile which is reinstalling libcurl-devel and git, doing git clone to an https url will give the following error

git: 'remote-https' is not a git command. See 'git --help'.

If I paste those commands from the Dockerfile into the terminal :(with sudo yum) then it does fix the problem.

gilesknap commented 1 year ago

@aawdls I think I have a fix for you.

Try pulling the latest container when this is done https://github.com/dls-controls/dev-c7/actions/runs/5090534472

Let me know if it works and II'll tag it.

aawdls commented 1 year ago

I seem to still be getting the error This should work?

join-up [tdq39642@pc0095 machine_status_hybrid]$ c7 -pd
dev-c7
Trying to pull ghcr.io/dls-controls/dev-c7:latest...
Getting image source signatures
Copying blob 64e2e546bfb6 done  
Copying blob 75c4e5f258e8 done  
Copying blob 2d473b07cdd5 skipped: already exists  
Copying blob ffe61ca7763a done  
Copying blob eb75c545a7d6 done  
Copying blob 073efa85ecab done  
Copying blob c0783921206c done  
Copying blob 138135ed2901 done  
Copying config 867e499cd7 done  
Writing manifest to image destination
Storing signatures
867e499cd74bffd892d8772a13512da6fdab14d3e12f72108d512eabc421b6dd

Creating new dev-c7 container version latest ...
d20091f20eaf397e363b51b9e63953d630f94adc3515e3dd4a797fcb6a36aa4c
C join-up [tdq39642@pc0095 machine_status_hybrid]$ cd /tmp
C [tdq39642@pc0095 tmp]$ git clone https://github.com/dls-controls/dls_aa.git
Cloning into 'dls_aa'...
git: 'remote-https' is not a git command. See 'git --help'.
gilesknap commented 1 year ago

I have determined that the issue still appears when the container has been built using github actions (and docker). When I locally build the same container with podman the issue is not present.

For this reason I have restored the hack in the c7 launch script that re-installs git-core at container runtime.

@aawdls please can you download the c7 script and verify that it works for you? Thanks.