Skip to content

Instantly share code, notes, and snippets.

@TharmiganK
Created June 11, 2024 13:55
Show Gist options
  • Save TharmiganK/098fa51acefb97e9790b8e2985f28999 to your computer and use it in GitHub Desktop.
Save TharmiganK/098fa51acefb97e9790b8e2985f28999 to your computer and use it in GitHub Desktop.
Docker file to reproduce no such field error
FROM eclipse-temurin:17.0.7_7-jdk
# Install Docker
RUN apt-get update && \
apt-get -qy full-upgrade && \
apt-get install -qy curl && \
curl -sSL https://get.docker.com/ | sh
# Install Git
RUN apt-get install -y git
# Clone the repository
RUN git clone https://github.com/ballerina-platform/module-ballerina-graphql.git
# Set the working directory
WORKDIR /module-ballerina-graphql
# Set environment variables
ENV packageUser <packageUser>
ENV packagePAT <packagePAT>
# Build the project
RUN ./gradlew clean build -x test
# Run the tests
RUN ./gradlew test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment