Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Server #44

Merged
merged 47 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
effdaf0
demos
josephjclark Apr 17, 2024
db6c92c
remove unused stuff
josephjclark Apr 17, 2024
698900c
restrucure new server
josephjclark Apr 17, 2024
9eda486
setup basic web server
josephjclark Apr 17, 2024
2306fdd
setup js-python bridge
josephjclark Apr 17, 2024
f24fb85
docs
josephjclark Apr 17, 2024
00f46c7
add rudimentary unit tests
josephjclark Apr 17, 2024
2bbb4c3
sort of got a dockerfile running
josephjclark Apr 18, 2024
4272153
setup auto-routing to python modules
josephjclark Apr 19, 2024
b180554
poetry config
josephjclark Apr 24, 2024
24bb785
atempt to dynamically load the right venv path
josephjclark Apr 24, 2024
275f294
revert to fixed python version
josephjclark Apr 24, 2024
2066461
refactor and sort of finish sig gen
josephjclark Apr 24, 2024
c162644
roughly copy over inference
josephjclark Apr 24, 2024
ca6fed4
hooked up inference service
josephjclark Apr 24, 2024
5ca418e
use absolute module paths in inference
josephjclark Apr 25, 2024
7560bf8
tempory commit
josephjclark Apr 25, 2024
f586ffe
Fixed python imports (thanks Elias)
josephjclark Apr 25, 2024
36ab1b5
heavily simplify
josephjclark Apr 25, 2024
22f6e59
more refactoring
josephjclark Apr 25, 2024
fcf45a7
add codet5 model
josephjclark Apr 26, 2024
9f97c38
restructuring
josephjclark Apr 26, 2024
c96947d
untrack node_modules
josephjclark Apr 26, 2024
18292b9
reorganise
josephjclark Apr 26, 2024
648d53c
more reorganising
josephjclark Apr 26, 2024
b36980d
more tidying
josephjclark Apr 26, 2024
8bd0b79
docs
josephjclark Apr 26, 2024
5eca462
better hot reloading with nodemon
josephjclark Apr 26, 2024
f1c66d6
refactoring
josephjclark Apr 26, 2024
1e252f8
finsih porting inference modules
josephjclark Apr 26, 2024
7e8e482
fixed signature gen
josephjclark Apr 26, 2024
546780e
hookup code generator
josephjclark Apr 26, 2024
c88b8bf
drop in a full adaptor-gen endpoint
josephjclark Apr 26, 2024
41ee794
plug in very basic service listing
josephjclark Apr 30, 2024
46c5465
nicer service listing pages
josephjclark Apr 30, 2024
b5587f3
fix summaries
josephjclark Apr 30, 2024
2a32652
raft of documentation
josephjclark Apr 30, 2024
1bbca1b
sort out dotenv
josephjclark Apr 30, 2024
76bfd49
add cli util to invoke python directly
josephjclark Apr 30, 2024
25b67c6
Remove old readme
josephjclark Apr 30, 2024
536a05f
update tests
josephjclark Apr 30, 2024
9edefc9
update dockerfile
josephjclark May 1, 2024
76617c8
docs
josephjclark May 1, 2024
d873329
update node-calls-python, remove nodemon, update docs
josephjclark May 2, 2024
faf4b1f
tweaks
josephjclark May 8, 2024
eb1347e
Adjust version
josephjclark May 10, 2024
ac3e9f8
add github action for dockerize
josephjclark May 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
44 changes: 44 additions & 0 deletions .github/workflows/dockerize.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and push Docker images

on:
push:
branches: main

jobs:
build-and-push-worker-image:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Manipulate tag for docker
id: branch_name
run: |
SOURCE_TAG=${GITHUB_REF#refs/tags/}
echo Source Tag: $SOURCE_TAG

VERSION_TAG=${SOURCE_TAG#@openfn/apollo}
echo Version Tag: $VERSION_TAG

DOCKER_TAG=${VERSION_TAG#@}
echo Docker Tag: $DOCKER_TAG

echo "DOCKER_TAG=$DOCKER_TAG" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
target: apollo
tags: |
openfn/apollo:latest
openfn/apollo:v${{ env.DOCKER_TAG }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
.vscode/

# Poetry specific files and directories
poetry.lock
.poetry/
__pypackages__/
.venv

# node.js stuff
node_modules/

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
27 changes: 0 additions & 27 deletions .pre-commit-config.yaml

This file was deleted.

303 changes: 0 additions & 303 deletions CHANGES.md

This file was deleted.

Loading