• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /var/www/html/cnasolution/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Docker COPY fails Github actions with git lfs

I am using Github actions to build docker images with a file from git lfs.
I have the following step:

     -          name: Checkout code         uses: actions/[email protected]         with:           lfs: true       -          run: head something.json 

Which prints the data correctly.

When I run the same command from my dockerfile in the build stage,
I get the following lfs metadata:

#7 [4/5] RUN head something.json #7 sha256:*** #7 0.138 version https://git-lfs.github.com/spec/v1 #7 0.138 oid sha256:*** #7 0.138 size 1230424 #7 DONE 0.2s 

Dockerfile:

FROM bitnami/python:3.9.1  COPY . .  RUN head something.json 

Action:

jobs:   build-image:     runs-on: ubuntu-latest     steps:       -          name: Checkout code         uses: actions/[email protected]         with:           lfs: true       -          run: head something.json       -         name: Set up QEMU         uses: docker/[email protected]       -         name: Set up Docker Buildx         uses: docker/[email protected]       -         name: Build and push         id: docker_build         uses: docker/[email protected]         with:           push: true           file: Dockerfile 

Why the docker build takes the metadata and not the actual file?

Download script demo [LINK]
Download script demo [LINK 2] Download script demo [LINK 2]