Skip to content

Commit e6f8822

Browse files
committed
Added necessary github workflow yaml files
1 parent 82e82d5 commit e6f8822

16 files changed

+2156
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/image/Dockerfile

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
FROM ubuntu:latest
2+
3+
# build using command: docker build --progress=plain -t chronon-base .
4+
5+
# Install necessary tools and Python
6+
RUN apt update && apt install -y wget curl bash python3 python3-pip openjdk-17-jdk python3.12-venv
7+
8+
# java
9+
ENV JAVA_HOME=/usr/lib/jvm/default-jvm
10+
ENV PATH=$PATH:$JAVA_HOME/bin
11+
12+
# sbt for scala
13+
RUN curl -L "https://github.com/sbt/sbt/releases/download/v1.8.2/sbt-1.8.2.tgz" | tar -xz -C /usr/local
14+
ENV PATH="/usr/local/sbt/bin:${PATH}"
15+
16+
# bazel
17+
RUN curl -fsSL "https://github.com/bazelbuild/bazelisk/releases/download/v1.18.0/bazelisk-linux-amd64" -o /usr/local/bin/bazel
18+
RUN chmod +x /usr/local/bin/bazel
19+
ENV PATH="/usr/local/bin:${PATH}"
20+
21+
# thrift
22+
ARG THRIFT_VERSION=0.21.0
23+
RUN apt install -y \
24+
build-essential \
25+
cmake \
26+
libboost-dev \
27+
libssl-dev \
28+
libevent-dev \
29+
bison \
30+
flex \
31+
autoconf \
32+
automake \
33+
libtool \
34+
curl && \
35+
curl -LSs https://archive.apache.org/dist/thrift/${THRIFT_VERSION}/thrift-${THRIFT_VERSION}.tar.gz -o thrift-${THRIFT_VERSION}.tar.gz && \
36+
tar -xzf thrift-${THRIFT_VERSION}.tar.gz && \
37+
cd thrift-${THRIFT_VERSION} && \
38+
./configure --without-python --without-cpp --without-nodejs --without-java && \
39+
make && \
40+
make install && \
41+
cd .. && \
42+
rm -rf thrift-${THRIFT_VERSION} thrift-${THRIFT_VERSION}.tar.gz && \
43+
apt purge -y \
44+
build-essential \
45+
cmake \
46+
libboost-dev \
47+
libssl-dev \
48+
libevent-dev \
49+
bison \
50+
flex \
51+
autoconf \
52+
automake \
53+
libtool \
54+
curl && \
55+
apt autoremove -y && \
56+
rm -rf /var/lib/apt/lists/*
57+
58+
# Upgrade pip and install some common Python packages
59+
RUN pip3 install --break-system-packages pytest tox flake8 ruff
60+
61+
RUN apt update && apt install -y build-essential git
62+
RUN mkdir -p /usr/lib/jvm && ln -s /usr/lib/jvm/java-17-openjdk-amd64/ /usr/lib/jvm/default-jvm
63+
64+
# Verify installations
65+
RUN java -version && \
66+
thrift -version && \
67+
python3 --version && \
68+
pip3 --version && \
69+
bazel --version && \
70+
git --version
71+
72+
# Set working directory
73+
WORKDIR /app
74+
75+
# Cmd to run when starting the container
76+
CMD ["/bin/bash"]

.github/pull_request_template.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Summary
2+
3+
## Checklist
4+
- [ ] Added Unit Tests
5+
- [ ] Covered by existing CI
6+
- [ ] Integration tested
7+
- [ ] Documentation update
8+

.github/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
categories:
6+
- title: Major features / breaking changes
7+
labels:
8+
- Semver-Major
9+
- title: Minor features
10+
labels:
11+
- Semver-Minor
12+
- title: Bug fixes
13+
labels:
14+
- Semver-Patch
15+
- title: Other changes
16+
labels:
17+
- "*"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Push Docker Image
2+
3+
on:
4+
push:
5+
paths:
6+
- '.github/image/Dockerfile'
7+
workflow_dispatch:
8+
9+
env:
10+
REGISTRY: ghcr.io
11+
IMAGE_NAME: ${{ github.repository }}-ci
12+
13+
jobs:
14+
build-and-push:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
packages: write
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Log in to the Container registry
24+
uses: docker/login-action@v1
25+
with:
26+
registry: ${{ env.REGISTRY }}
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Build and push Docker image
31+
uses: docker/build-push-action@v6
32+
with:
33+
context: .github/image
34+
push: true
35+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest

0 commit comments

Comments
 (0)