GarbageYard

Custom Gradle (Alpine) image with curl installed

Aug 18th, 2018
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. BitBucket pipeline:
  2. -------------------------------------------------------------------------------------------
  3. image: gradle:jdk8-alpine
  4.  
  5. pipelines:
  6. custom: # Pipelines that can only be triggered manually
  7. Build & deploy:
  8. - step:
  9. script:
  10. - cat /etc/passwd
  11. - id
  12. - addgroup gradle root
  13. - apk update && apk add --no-cache --virtual .fetch-deps curl python-dev && apk del .fetch-deps && python --version
  14. - curl -O https://bootstrap.pypa.io/get-pip.py
  15. ...
  16. ...
  17. -------------------------------------------------------------------------------------------
  18.  
  19. Output:
  20. -------------------------------------------------------------------------------------------
  21. + cat /etc/passwd
  22. root:x:0:0:root:/root:/bin/ash
  23. bin:x:1:1:bin:/bin:/sbin/nologin
  24. ...
  25. ...
  26. nobody:x:65534:65534:nobody:/:/sbin/nologin
  27. gradle:x:1000:1000:Linux User,,,:/home/gradle:/bin/ash
  28.  
  29. + id
  30. uid=1000(gradle) gid=1000(gradle) groups=1000(gradle)
  31.  
  32. + addgroup gradle root
  33. addgroup: permission denied (are you root?)
  34. -------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment