Skip to content

Commit

Permalink
productionize
Browse files Browse the repository at this point in the history
  • Loading branch information
lolopinto committed Aug 28, 2023
1 parent 65c0442 commit fef4a1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions release_image/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

// next tag to use
const TAG = "v0.1.6-test7"
const TAG = "v0.1.6"

// current node gets latest tag...
const CURRENT_NODE_VERSION = 18
Expand All @@ -32,18 +32,18 @@ var NODE_VERSIONS = []int{
// 20,
}

const AUTO_SCHEMA_VERSION = "0.0.32"
const TSENT_VERSION = "v0.1.6-test4"
const AUTO_SCHEMA_VERSION = "0.0.30"
const TSENT_VERSION = "v0.1.6"

var SUFFIXES = []string{
"dev",
// "slim",
"slim",
}

// can change platforms here to test locally
var PLATFORMS = []string{
"linux/amd64",
// "linux/arm64",
"linux/arm64",
}

func do(version int) error {
Expand Down
6 changes: 3 additions & 3 deletions ts/Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ RUN python -m venv /opt/venv
# Make sure we use the virtualenv
ENV PATH /opt/venv/bin:$PATH

# RUN python3 -m pip install auto_schema==$AUTO_SCHEMA_VERSION
RUN python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ auto_schema_test==$AUTO_SCHEMA_VERSION
RUN python3 -m pip install auto_schema==$AUTO_SCHEMA_VERSION
# RUN python3 -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ auto_schema_test==$AUTO_SCHEMA_VERSION

# final image needs to be python-based to have auto-schema work
FROM python:3.11.0-slim AS final-image
Expand Down Expand Up @@ -71,7 +71,7 @@ RUN npm install --save-dev [email protected] @swc-node/[email protected]

COPY --from=golang-image /go/bin/tsent /go/bin/tsent
COPY --from=python-image /opt/venv /opt/venv
RUN alias auto_schema=auto_schema_test
# RUN alias auto_schema=auto_schema_test
COPY --from=golang-image /go/pkg/mod/github.com/lolopinto/ent@$GOLANG_VERSION /go/pkg/mod/github.com/lolopinto/ent@$GOLANG_VERSION

CMD ["node"]
Expand Down

0 comments on commit fef4a1a

Please sign in to comment.