Comments (19)
hi @quincarter , edbizarro/gitlab-ci-pipeline-php:7.1-alpine image must be fixed with my PR #11 , and sudo package available in image.
from gitlab-ci-pipeline-php.
@quincarter please invalidate your cache, the older cache was generated with the image using the root user, and now the user is php
from gitlab-ci-pipeline-php.
Hi @quincarter
I'm changed the user in the images for security reasons, now all images run with the user php
, so you need to run your commands in the debian images with sudo. sudo apt get...
from gitlab-ci-pipeline-php.
btw. images already come with node, npm and yarn, u don't need to install these in your pipeline setup
from gitlab-ci-pipeline-php.
@edbizarro -- i am getting bin/bash: line 55: sudo: command not found
in my runner.
Checking out 399e85d8 as feature/mybranch123...
Skipping Git submodules setup
Checking cache for feature/mybranch123...
FATAL: file does not exist
Failed to extract cache
$ set -xe
$ sudo apt-get install -y libxml2-dev
++ echo '$ sudo apt-get install -y libxml2-dev'
++ sudo apt-get install -y libxml2-dev
/bin/bash: line 55: sudo: command not found
ERROR: Job failed: exit code 1
from gitlab-ci-pipeline-php.
hi @quincarter
Please try run again
from gitlab-ci-pipeline-php.
@edbizarro I am still getting the same error.
from gitlab-ci-pipeline-php.
@edbizarro Hello!
We have error for same reason as above:
apk --update add php7-simplexml php7-fileinfo
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
I think we need sudo package for alpine images )
from gitlab-ci-pipeline-php.
@antuspenskiy - yes i agree -- when in the docker config, it needs to have an apt-get update && apt-get install sudo
somewhere. Then the runner user needs to be added to the sudoers
group. @edbizarro --- this is what needs to happen if it is not already there.
from gitlab-ci-pipeline-php.
hi @quincarter and @antuspenskiy
I added the user php to the sodoers and added sudo package.
Sry for the problem.
from gitlab-ci-pipeline-php.
Okay it looks as though the 7.0 image is fixed, but the 7.1 image is not.
edbizarro/gitlab-ci-pipeline-php:7.1-alpine
Can you verify that the sudo command has been added here? Thanks @edbizarro
from gitlab-ci-pipeline-php.
as @antuspenskiy said, the 7.1 images already has sudo
from gitlab-ci-pipeline-php.
Same happened on my pipelines, also got this now:
from gitlab-ci-pipeline-php.
@RamonSmit using which tag did this happen?
from gitlab-ci-pipeline-php.
@edbizarro edbizarro/gitlab-ci-pipeline-php:7.1 ID=sha256:b9b39a103634cd882f726ff8aeac1a174f5d7c0ab18dc3386717e75d55bcba80
from gitlab-ci-pipeline-php.
@RamonSmit try change your cache folder to ~/.composer/cache
from gitlab-ci-pipeline-php.
Yeah now our 7.1 image is messing up -----
Running with gitlab-ci-multi-runner 9.4.2 (6d06f2e)
Cloning repository...
Cloning into '/blah'...
Checking out c09e5c3f as feature/fixing-gitlab-ci...
Skipping Git submodules setup
Checking cache for feature/fixing-gitlab-ci...
Successfully extracted cache
/bin/bash: line 6: /somefile.tmp/CI_SERVER_TLS_CA_FILE: Permission denied
/bin/bash: line 6: /somefile.tmp/CI_SERVER_TLS_CA_FILE: Permission denied
ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1
And the first part of our gitlab-ci.yml
looks like this --
image: edbizarro/gitlab-ci-pipeline-php:7.1-alpine
before_script:
- set -xe
- sudo apk add --update php7-simplexml
after_script:
- sudo killall php
stages:
- setup
- test
setup:
type: setup
script:
- composer install --quiet --no-interaction
- sudo cp .env.testing .env
cache:
key: ${CI_BUILD_REF_NAME}
paths:
- vendor/
artifacts:
expire_in: 1 week
paths:
- vendor/
- .env
from gitlab-ci-pipeline-php.
@edbizarro ~/.composer/cache
solved it for us! Thanks!
from gitlab-ci-pipeline-php.
I'm closing this issue for now, if you have any problem please feel free to open another one.
Thanks
from gitlab-ci-pipeline-php.
Related Issues (20)
- The removal of /usr/src/* breaks docker-php-ext-install on alpine build HOT 3
- CI broken due to missing libXss.so HOT 2
- failed to open stream: Cannot assign requested address
- Could you add pnpm like you did with Yarn ? HOT 1
- xdebug configuration change - breaks coverage reports HOT 13
- Composer 2 HOT 6
- mising PHP extension sockets
- Invalid option name: set: pipefail HOT 2
- PHP 8.0 request HOT 6
- Is there a way to change mysql configuration in the images?
- MySQL 8 support broken HOT 3
- PackageManifest.php Undefined index: name HOT 4
- 8.0-alpine is still using Composer v1.x HOT 2
- php-amqplib/php-amqplib v3.0.0 requires ext-sockets HOT 1
- Possible Strange permission issue
- PHP 8.1 Support HOT 8
- PHP 8.0 image is outdated HOT 5
- is pcov supported?
- Rebuild images to update Composer version
- This project is abandoned, see alternative
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab-ci-pipeline-php.