This change orchestrates function builds. Environments (in v2) define a builder image, just like they do a runtime image. The builder image contains a build script that's invoked with source and deployment paths (as env vars). The buildermgr watches for environments with build images defined, and creates build deployments and services. Functions can define source and deployment. Buildermgr watches for functions with source code (and build status == pending) and invokes the environment's builder when appropriate. It captures logs from the build and sets the build status (success/failure) and build lots into the PackageStatus.
12 lines
216 B
Docker
12 lines
216 B
Docker
FROM alpine:3.5
|
|
|
|
RUN apk update
|
|
RUN apk add --no-cache python3 python3-dev build-base
|
|
RUN pip3 install --upgrade pip
|
|
RUN rm -r /root/.cache
|
|
|
|
ADD defaultBuildCmd /usr/local/bin/build
|
|
ADD builder /builder
|
|
|
|
EXPOSE 8001
|