Skip to content

Commit

Permalink
Update image used to build PHP (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
brayanhenao committed Jul 31, 2023
1 parent 2ed11fd commit 05cbc92
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/build-cflinuxfs3-dev-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build cflinuxfs3-dev docker image

on:
workflow_dispatch: { }
schedule:
- cron: "0 1 * * 1"
push:
branches: [ master ]
paths: [ dockerfiles/cflinuxfs3-dev.Dockerfile ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.CF_BUILDPACKS_DOCKERHUB_USERNAME }}
password: ${{ secrets.CF_BUILDPACKS_DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: cfbuildpacks/cflinuxfs3-dev
file: dockerfiles/cflinuxfs3-dev.Dockerfile
8 changes: 8 additions & 0 deletions dockerfiles/cflinuxfs3-dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM cloudfoundry/cflinuxfs3

RUN apt update

# Remove ESM packages required for dependenciees

## PHP
RUN apt remove libonig4 -y
10 changes: 9 additions & 1 deletion pipelines/dependency-builds.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ resources:
source: {repository: cloudfoundry/<%= stack %>}
<% end %>

- name: cflinuxfs3-dev-image
type: docker-image
source:
repository: cfbuildpacks/cflinuxfs3-dev

<% dependencies.values.map{|dep| dep['buildpacks'].keys}.flatten.uniq.each do |buildpack|
branch = 'develop'
private_key = '((cf-buildpacks-eng-github-ssh-key.private_key))'
Expand Down Expand Up @@ -328,6 +333,9 @@ version_lines = dep['buildpacks'].values.reduce([]) {|sum, bp| sum | get_version
<%
specific_stack = cflinuxfs4_build_dependencies.include?(dep_name.downcase) ? stacks : [stacks.last]
if dep_name.downcase == 'php'
specific_stack = specific_stack - ['cflinuxfs3'] + ['cflinuxfs3-dev']
end
%>
- name: build-<%= dep_name.downcase %>-<%= line.downcase %>
serial: true
Expand Down Expand Up @@ -365,7 +373,7 @@ version_lines = dep['buildpacks'].values.reduce([]) {|sum, bp| sum | get_version
params:
STACK: <%= stack %>
- in_parallel:
<% if !dep['third_party_hosted'] %>
<% unless dep['third_party_hosted'] %>
- put: buildpacks-bucket-<%= dep_name %>-<%= stack %>
resource: buildpacks-bucket-<%= dep_name %>
params:
Expand Down

0 comments on commit 05cbc92

Please sign in to comment.