OCL API 2

Build: #2338 failed

Job: Build oclapi2 was successful

Stages & jobs

  1. Build

  2. Test

  3. Deploy for testing

    Requires a user to start manually
  4. Release

    Requires a user to start manually

Job result summary

Completed
Duration
1 minute
Agent
xindi.openmrs.org (2)
Revision
b9d9e33dbf9460453137ced66185f9f23a7a24a7
Successful since
#2293 ()

Error summary

The build generated some errors. See the full build log for more details.


#2 [internal] load metadata for docker.io/library/python:3.10-slim
#2 DONE 0.3s

#3 [internal] load .dockerignore
#3 transferring context: 276B done
#3 DONE 0.0s

#4 [builder 1/7] FROM docker.io/library/python:3.10-slim@sha256:f8081b61393cc16b2339d377bb523a5646cdd28fc6105612b3893c405d27f730
#4 DONE 0.0s

#5 [internal] load build context
#5 transferring context: 286.59MB 2.2s done
#5 DONE 2.3s

#6 [stage-1  9/16] COPY --from=builder /code/wheels /wheels
#6 CACHED

#7 [stage-1  2/16] RUN groupadd -r ocl && useradd -r -g ocl ocl
#7 CACHED

#8 [stage-1  4/16] RUN chmod -R 0777 /home/ocl
#8 CACHED

#9 [stage-1 11/16] RUN pip install --no-cache-dir /wheels/*
#9 CACHED

#10 [builder 2/7] RUN apt-get update && apt-get upgrade -y &&     apt-get install -y --no-install-recommends     bash git gcc libssl-dev libffi-dev libpq-dev python3-dev build-essential cargo
#10 CACHED

#11 [stage-1  8/16] RUN pip install --upgrade pip
#11 CACHED

#12 [stage-1  3/16] RUN mkdir /home/ocl
#12 CACHED

#13 [stage-1  6/16] WORKDIR /code
#13 CACHED

#14 [builder 6/7] ADD requirements.txt /code/
#14 CACHED

#15 [builder 5/7] WORKDIR /code
#15 CACHED

#16 [stage-1 10/16] COPY --from=builder /code/requirements.txt .
#16 CACHED

#17 [stage-1  7/16] RUN apt-get update && apt-get upgrade -y &&     apt-get install -y --no-install-recommends     libpq-dev bash curl &&     apt-get clean && rm -rf /var/lib/apt/lists/*
#17 CACHED

#18 [builder 4/7] RUN mkdir /code
#18 CACHED

#19 [builder 3/7] RUN pip install --upgrade pip
#19 CACHED

#20 [stage-1  5/16] RUN mkdir -p /code /temp /staticfiles /uploads &&     chown -R ocl:ocl /code /temp /staticfiles /uploads
#20 CACHED

#21 [builder 7/7] RUN pip wheel --no-cache-dir --wheel-dir /code/wheels -r requirements.txt
#21 CACHED

#22 [stage-1 12/16] RUN rm -rf /wheels
#22 CACHED

#23 [stage-1 13/16] ADD --chown=ocl:ocl . /code
#23 DONE 0.8s

#24 [stage-1 14/16] RUN python manage.py collectstatic --noinput
#24 21.74 /usr/local/lib/python3.10/site-packages/drf_yasg/__init__.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
#24 21.74   from pkg_resources import DistributionNotFound, get_distribution
#24 27.87
#24 27.87 285 static files copied to '/staticfiles', 225 post-processed.
#24 DONE 30.6s

#25 [stage-1 15/16] RUN chmod +x set_build_version.sh wait_for_it.sh startup.sh start_celery_worker.sh ping_celery_worker.sh start_flower.sh
#25 DONE 0.4s

#26 [stage-1 16/16] RUN ["bash", "-c", "./set_build_version.sh"]
#26 0.267 Setting build version to b9d9e33d in core/__init__.py
#26 DONE 0.3s

#27 exporting to image
#27 exporting layers
#27 exporting layers 0.8s done
#27 writing image sha256:d8953ec4a14bcc1192c80b43ef99a946f410201f4731f43084a62d3ec283fe18 done
#27 naming to docker.io/openconceptlab/oclapi2:nightly 0.0s done
#27 DONE 0.9s

4 warnings found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 2)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 3)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 19)
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/bamboo-agent/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credential-stores