Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

270
Views
Descargar un repositorio git en Dockerfile

Uso docker.com para compilar automáticamente cada vez que hago una confirmación en mi repositorio de GitHub. (ver https://docs.docker.com/docker-hub/builds/ )

Me gustaría llamar a luacheck en todos los archivos en la imagen de la ventana acoplable y dejar que falle si hay advertencias.

Agregué un error de Lua a propósito y agregué estas líneas en mi Dockerfile :

 RUN useradd -d /gluon gluon RUN cd /gluon RUN git clone https://github.com/rubo77/gluon/ gluon RUN cd gluon USER gluon VOLUME /gluon WORKDIR /gluon RUN git checkout docker RUN cp -a docs/site-example/ site RUN luacheckrc .; if [ $? -gt 0 ]; then exit 1; fi

ver: https://github.com/rubo77/gluon/commits/docker

pero falla

 /bin/sh: 1: cd: can't cd to /gluon

incluso antes del repositorio git

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Primero debe crear el directorio para el usuario de gluon y otorgarle derechos de escritura con:

 FROM ubuntu RUN useradd -d /gluon gluon RUN apt-get update && apt-get install -y git RUN mkdir /gluon RUN chown -R gluon:gluon /gluon USER gluon RUN cd /gluon RUN git clone https://github.com/rubo77/gluon/ gluon RUN cd gluon VOLUME /gluon WORKDIR /gluon RUN git checkout docker RUN cp -a docs/site-example/ site RUN luacheck .; if [ $? -gt 0 ]; then exit 1; fi
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!