Skip to content

Cannot build dockerfile locally on a dls workstation #288

@callumforrester

Description

@callumforrester

#251 adds the following to the Dockerfile

# Requires buildkit 0.17.0
COPY --chmod=o+wrX . /workspaces/{{ repo_name }}

This line fails for me on a dls workstation, how to reproduce below:

++ git clone https://github.com/DiamondLightSource/python-copier-template-example.git
Cloning into 'python-copier-template-example'...
remote: Enumerating objects: 5013, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 5013 (delta 32), reused 28 (delta 28), pack-reused 4974 (from 1)
Receiving objects: 100% (5013/5013), 22.13 MiB | 29.43 MiB/s, done.
Resolving deltas: 100% (3474/3474), done.
++ cd python-copier-template-example
++ podman build .
[1/4] STEP 1/4: FROM python:3.11 AS developer
[1/4] STEP 2/4: RUN apt-get update && apt-get install -y --no-install-recommends     graphviz     && rm -rf /var/lib/apt/lists/*
--> Using cache daeba595cee341fc0cee998a80ebc149abdc3c6330de5221123c0fe920eaf49c
--> daeba595cee3
[1/4] STEP 3/4: RUN python -m venv /venv
--> Using cache 8cca89de6abc1d8750672521789adea5c0316b98a885c08d06a2e52527c030b6
--> 8cca89de6abc
[1/4] STEP 4/4: ENV PATH=/venv/bin:$PATH
--> Using cache 3afdd169b500f15ecc38ff45290c1952a021ac24994b9591a1ba926c4f1f5871
--> 3afdd169b500
[2/4] STEP 1/4: FROM 3afdd169b500f15ecc38ff45290c1952a021ac24994b9591a1ba926c4f1f5871 AS build
[2/4] STEP 2/4: COPY --chmod=o+wrX . /workspaces/python-copier-template-example
Error: building at STEP "COPY --chmod=o+wrX . /workspaces/python-copier-template-example": Error parsing chmod o+wrX

I presume we're not using buildkit, @gilesknap and @DiamondJoseph have you seen this before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions