Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1894 commits
Select commit Hold shift + click to select a range
a44c2e6
remove symlinks
eandre Dec 16, 2024
521c71b
error on too new encore.dev version
eandre Dec 19, 2024
eed32a8
pkg/dockerbuild: change runtime fs location
eandre Dec 19, 2024
8fc7653
resolve encore.gen without alias import
eandre Dec 22, 2024
c541ca0
tsparser: handle tsconfig aliases for files with periods
eandre Dec 22, 2024
3ec6e95
tsparser: handle files in app root
eandre Dec 22, 2024
87a9ae2
install local encore.dev in dev mode
eandre Dec 22, 2024
9544b25
runtimes/core: correctly extract error responses
eandre Dec 27, 2024
2c687c7
tsparser: correctly parse pubsub attrs
eandre Dec 27, 2024
125ed14
runtimes/core: serialize custom pubsub attrs
eandre Dec 27, 2024
e3c171d
fix js runtime docker build copying
eandre Jan 9, 2025
ed3194d
runtimes/core: box details for smaller error size
eandre Jan 9, 2025
ceafb5e
update Cargo.lock
eandre Jan 9, 2025
336d42e
Fix infra config validation for Auth types (#1691)
ekerfelt Jan 10, 2025
ebe868e
infra-config: Add more DB config settings (#1694)
ekerfelt Jan 10, 2025
ed2a221
Fix new clippy lints (#1695)
fredr Jan 10, 2025
9da7304
tutorial: fix uptime test (#1697)
fredr Jan 10, 2025
4b15fba
update testing docs (#1698)
marcuskohlberg Jan 10, 2025
72ec34f
Add LLM instructions (#1706)
marcuskohlberg Jan 14, 2025
5efdabe
Add Railway deployment guide (#1693)
simon-johansson Jan 14, 2025
03d602c
runtimes/go: support cache cluster outside svcs
eandre Jan 15, 2025
9084656
add go llm rules (#1710)
marcuskohlberg Jan 15, 2025
705bbdd
update llm instructions (#1712)
marcuskohlberg Jan 16, 2025
0dd7824
Update self-host examples (#1708)
simon-johansson Jan 16, 2025
0debbdf
Add support for signed upload urls. (#1661)
erikcarlsson Jan 16, 2025
44b8d23
runtimes/go: fix cache error tracing
eandre Jan 16, 2025
edc4448
Fix bucket refs for signed upload URLs. (#1714)
erikcarlsson Jan 16, 2025
df87a5c
Add a separate bucket ref type for signed upload URLs. (#1716)
erikcarlsson Jan 17, 2025
d51d6d5
Add support for signed download urls. (#1715)
erikcarlsson Jan 17, 2025
87d622a
infra: Add infra config docs and fix pubsub config bug (#1720)
ekerfelt Jan 17, 2025
b1f2415
clientgen/ts: qualify Request with globalThis to avoid name conflicts…
fredr Jan 20, 2025
1979172
Fix golang bucket refs for upload/download URLs. (#1727)
erikcarlsson Jan 20, 2025
1f2f9f9
Add docs for signed upload/download URLs. (#1684)
erikcarlsson Jan 20, 2025
d208ded
runtimes/js: Add endpoint tags (#1726)
fredr Jan 20, 2025
c88dda4
tsparser: make tags non-nullable
eandre Jan 21, 2025
bce178a
Add user configuration support
eandre Jan 15, 2025
04b1dfb
runtimes/core: fix stream handshake with only path parameters (#1730)
fredr Jan 22, 2025
40c69b0
Update app-structure.md (#1732)
marcuskohlberg Jan 22, 2025
e7f23ea
Update ts_llm_instructions.txt (#1733)
marcuskohlberg Jan 22, 2025
4e27e1c
clientgen: default to local env if no env is specified (#1728)
fredr Jan 23, 2025
552c6f5
clientgen/{ts,js}: default content type on raw request (#1717)
fredr Jan 23, 2025
d0f859a
parse error details as pvalues to support dates
fredr Jan 10, 2025
84c08ff
runtimes/go/storage: fix doc comment
eandre Jan 24, 2025
47f4b30
Add DB migration status in the dev dashboard. (#1737)
erikcarlsson Jan 24, 2025
1b45592
update tutorials (#1742)
marcuskohlberg Jan 28, 2025
f388f38
runtimes/js: add tags to api description (#1741)
fredr Jan 28, 2025
293c0b3
fix docs highlighting (#1743)
marcuskohlberg Jan 28, 2025
5ea0b74
Fix docs highlights again (#1744)
marcuskohlberg Jan 28, 2025
2829f51
chore: correct typos docs (#1648)
Bilogweb3 Jan 29, 2025
cfd0f58
runtimes/core: deserialize details to none if not valid pvalues (#1746)
fredr Feb 3, 2025
620ec53
Explain how to mock auth in encore.ts (#1747)
Julion Feb 3, 2025
30f9cf7
rumtimes/js: better error message when error coercion fails (#1748)
fredr Feb 3, 2025
3ee8574
enable pingora openssl feature (#1758)
fredr Feb 7, 2025
7e9516a
update cargo lock (#1759)
fredr Feb 7, 2025
37f2796
chore: fix some function names in comment (#1755)
sjtucoder Feb 7, 2025
0804f56
docs: Correct vite config file extension (#1752)
fredr Feb 10, 2025
5390c69
chore: fix some function names in comment (#1767)
wangjingcun Feb 13, 2025
a54ecfa
Update README.md (#1768)
marcuskohlberg Feb 13, 2025
8c060a3
update database troubleshooting section (#1769)
marcuskohlberg Feb 13, 2025
08c3234
add use Logto auth guide (#1765)
xiaoyijun Feb 14, 2025
b574c73
add prerequisites information to encore.ts docs (#1772)
marcuskohlberg Feb 18, 2025
67ec0fe
fix new clippy lints (#1776)
fredr Feb 24, 2025
04921b1
extract non-visible ascii from header value (#1781)
fredr Feb 26, 2025
050d42f
handle non-ascii header values (#1785)
fredr Feb 26, 2025
89e5390
update platform intro docs (#1787)
marcuskohlberg Feb 26, 2025
897b897
docs/ts: add section about fallback routes (#1780)
fredr Feb 26, 2025
f1414ae
runtimes/core: decode path before verifying seal (#1782)
fredr Feb 26, 2025
e80b0c3
Increase max message size (#1777)
Willyham Feb 27, 2025
bc5faa0
add infra config docs (#1789)
marcuskohlberg Feb 28, 2025
053e048
object storage: Apply list prefix from options (#1791)
ekerfelt Mar 4, 2025
85c2f0c
ts: Add support for pubsub message ordering in TS (#1793)
ekerfelt Mar 4, 2025
af0edfa
Add support for bun package manager (#1770)
ekerfelt Mar 4, 2025
db51e4f
builder: Add docker options to ImageBuildConfig (#1799)
ekerfelt Mar 7, 2025
055eb21
Experiment with bun as nodejs runtime (#1798)
fredr Mar 10, 2025
17ab4fd
gcsemu: trim os path separator (#1806)
fredr Mar 12, 2025
ee6e128
tsparser: fix handshake helper type (#1809)
fredr Mar 12, 2025
f276ca9
tsparser: fix resolving of arrays in exports (#1810)
fredr Mar 13, 2025
bc7e649
tsparser: duplicate api name error (#1814)
fredr Mar 14, 2025
087c86c
cli: add configurable app root for example apps (#1812)
eandre Mar 14, 2025
9b32475
Fix schema filename mismatch in TypeScript GraphQL tutorial (#1718)
azoth-anima Mar 17, 2025
f547eb9
Better support for ts workspaces (#1794)
fredr Mar 17, 2025
72bd100
runtimes/js: add raw query methods for sqldb (#1818)
fredr Mar 18, 2025
d7fb61f
Move clientgen out of internal (#1805)
ekerfelt Mar 19, 2025
b0e1168
runtimes/{core,js}: make static not found status code configurable (#…
fredr Mar 20, 2025
e3eace6
fix: override not found status after fallback (#1825)
fredr Mar 21, 2025
368b07e
builder: make Stderr configurable (#1656)
eandre Mar 21, 2025
50d6923
fix resolution of nested imports (#1826)
fredr Mar 21, 2025
f41b860
add support for keyof enum pattern (#1828)
fredr Mar 21, 2025
c69a228
Fix encore build docker on windows (#1831)
fredr Mar 24, 2025
20158e5
[errs] use errors.As instead of type assertions (#1808)
twindebank Mar 25, 2025
34d1cae
docs/ts: document the new raw sql methods (#1833)
fredr Mar 25, 2025
360dd1d
pkg/cueutil: close files (#1834)
eandre Mar 26, 2025
dabfcab
runtimes/{core,js}: add hosted services to app meta (#1832)
fredr Mar 26, 2025
4e3c4df
runtimes/{core,js}: add support for query string arrays (#1835)
fredr Mar 27, 2025
7d39db7
runtimes/js: add new raw sql method for connection (#1836)
fredr Mar 27, 2025
5cbf2c6
runtimes/js: fix api.static docs (#1838)
eandre Mar 27, 2025
237c3d6
runtimes/{core,js}: add support for integer arrays in sqldb (#1841)
fredr Mar 31, 2025
db8c42c
fix encoding of undefined for sql queries (#1842)
eandre Mar 31, 2025
d367592
clientgen: Add support for parsing dates in TS response types (#1844)
ekerfelt Apr 1, 2025
19161cf
js/sqldb: support more array types (#1845)
fredr Apr 1, 2025
58af445
add an exec command for running scripts with inited js runtime (#1822)
fredr Apr 1, 2025
c165273
runtimes/core: add support for converting to sql enum (#1848)
fredr Apr 2, 2025
a75725e
fix new clippy lints (#1850)
fredr Apr 3, 2025
665b12e
tracer: Add err log when parsing invalid trace header (#1851)
ekerfelt Apr 3, 2025
8aaab92
runtimes/core: support PValue::DateTime in date columns (#1853)
eandre Apr 6, 2025
c58bba6
add docs for exec cli (#1849)
fredr Apr 7, 2025
7f5a98a
bugfix: remove accidental recursive accepts call (#1856)
fredr Apr 7, 2025
f79e376
fix correct accepts (#1858)
fredr Apr 7, 2025
11f30f8
pkg/clientgen: properly encode times in query strings (#1854)
eandre Apr 7, 2025
75c9f43
Fix infra config pubsub bug (#1857)
ekerfelt Apr 7, 2025
162b684
db: Fix panic caused by < -1 latest schema_migration version (#1859)
ekerfelt Apr 8, 2025
5de1f17
docs/ts: passing data from middlewares (#1860)
fredr Apr 8, 2025
c98b7b0
database transaction support in typescript (#1847)
fredr Apr 9, 2025
511addf
ts/docs: add bun experiment to faq (#1862)
fredr Apr 9, 2025
d6264b5
Fix child trace sampling bug (#1864)
ekerfelt Apr 10, 2025
1704fa4
Fix TraceParent parsing (#1865)
ekerfelt Apr 10, 2025
b7df552
add port config to cli docs (#1870)
marcuskohlberg Apr 14, 2025
d39dce3
Bump clientgen timeout to 30s (#1872)
ekerfelt Apr 15, 2025
4b81057
fix/make RPC functions and parameters accessible in generated Go clie…
janceesvansenden Apr 16, 2025
4c9e12c
Update compliance.md (#1875)
marcuskohlberg Apr 17, 2025
b403069
clientgen: Add option to add auth handler to an existing client (#1863)
ekerfelt Apr 17, 2025
5c92acf
Fix pubsub trace bug for background publish (#1881)
ekerfelt Apr 22, 2025
0fb37ff
gcp: Auto resume publish after publish error (#1884)
ekerfelt Apr 24, 2025
f5b5cc6
ci: bump actions/checkout to v4 (#1882)
dizer-ti Apr 25, 2025
5c2d926
Switch ca cert store to curl (#1887)
ekerfelt Apr 29, 2025
2ecc1ca
Upgrade pgproto (#1896)
ekerfelt May 5, 2025
08d3eea
Add infra docs on importing/configuring environments (#1897)
ekerfelt May 8, 2025
df55890
Update docs menu sub-section types (#1901)
marcuskohlberg May 8, 2025
68ff079
Update docs nav items (#1902)
marcuskohlberg May 8, 2025
daa9eaa
runtimes/js: fix setting of multi-headers (#1903)
fredr May 9, 2025
04bb67a
runtimes/{js,core}: add call options to api calls (#1892)
fredr May 9, 2025
1247d63
docs/ts: add docs for overriding auth data in ts (#1904)
fredr May 9, 2025
844d38b
Improve deploy docs (#1912)
marcuskohlberg May 13, 2025
a65edc5
docs: fix style guide reference in go_llm_instructions.txt (#1911)
odsod May 13, 2025
e0306fc
docs: fix typo in booking-system.mdx (#1909)
odsod May 14, 2025
72a8097
docs: add missing file path in booking-system.mdx (#1910)
odsod May 14, 2025
4b68b7c
Fix rust 1.87 new clippy lints (#1916)
fredr May 19, 2025
e18cc97
ts middleware: do not mutate the middleware when constructing (#1915)
fredr May 19, 2025
b64538f
update golang.org/x/mod to support tool directives (#1918)
eandre May 20, 2025
66efbd7
add saas-starter to create app list (#1919)
marcuskohlberg May 20, 2025
126e3a8
Add a MCP server to the local encore daemon (#1920)
ekerfelt May 21, 2025
c109543
update mcp docs (#1923)
marcuskohlberg May 21, 2025
56864c8
MCP graceful reconnect + bug fixes (#1924)
ekerfelt May 22, 2025
cebaf81
Add X-Forward-For on local proxy and Encore.go gateways (#1925)
ekerfelt May 22, 2025
3d3f812
Add X-Forward-For on local proxy and Encore.go gateways (#1926)
ekerfelt May 22, 2025
7fb653f
Bump clientgen timeout (#1928)
ekerfelt May 22, 2025
d5803d8
Update client docs (#1929)
marcuskohlberg May 22, 2025
76a4f03
replace link README.md (#1930)
dizer-ti May 23, 2025
d8bec60
S3 multipart upload fix (#1931)
ekerfelt May 23, 2025
65262db
Add CORS headers for local public storage server (#1933)
ekerfelt May 26, 2025
ebfe252
Add "HEAD" for the public bucket server (#1936)
ekerfelt May 27, 2025
328d12c
core/gateway: set x-forwarded headers (#1927)
fredr May 27, 2025
7cbcd64
Add leap as a target to encore gen client (#1938)
ekerfelt May 27, 2025
d67025a
runtimes/js: Add support for cookies (#1917)
fredr May 27, 2025
bf2fd36
docs/ts: document cookie support (#1939)
fredr May 27, 2025
e1ceaaa
add missing newline (#1941)
fredr May 27, 2025
d8d4435
clientgen: fix for empty types (#1942)
fredr May 27, 2025
bd4771a
cli/daemon/objects: use http.ServeContent for handling range requests…
eandre May 28, 2025
9a3401c
Add Accept-Ranges header to the public bucket server (#1946)
ekerfelt May 28, 2025
9f4362d
Allow cross site credentials for leap clients (#1947)
ekerfelt May 28, 2025
d996d25
Update README.md (#1951)
marcuskohlberg May 31, 2025
38f1a1b
local object storage: set options headers for cors (#1953)
fredr Jun 2, 2025
54eaa3e
fix: handle optional fields correctly in service to service calls (#1…
fredr Jun 2, 2025
7a33b15
show the correct install command in error message (#1955)
fredr Jun 2, 2025
13345d1
runtimes/core/sqldb: add cidr and inet postgres types (#1957)
fredr Jun 4, 2025
0d90ee1
runtimes/js: remove bigint panic and return an error instead (#1960)
fredr Jun 5, 2025
fe28636
db proxy: better logging (#1965)
fredr Jun 11, 2025
1e39d2d
dockerbuild: better error message for windows junctions (#1968)
fredr Jun 16, 2025
e6ad59b
appfile: add function that fails if app file not exist (#1969)
fredr Jun 16, 2025
24b4095
tsparser: handle default type params (#1958)
fredr Jun 16, 2025
048274b
daemon: add env var for the mcp sse listen address (#1971)
fredr Jun 17, 2025
d9d7069
docs: extra information about `encore exec` for encore go (#1975)
bamorim Jun 18, 2025
ffe7996
Allow overriding public object storage listener address (#1976)
ekerfelt Jun 19, 2025
b2c6480
Add support for External Databases (#1974)
ekerfelt Jun 19, 2025
6c2652a
Detect duplicate migrations in metadata migrator (#1977)
ekerfelt Jun 19, 2025
48e5d0b
tsparser: resolve conditional exports in the correct order (#1973)
fredr Jun 23, 2025
1c0456d
tsparser: usage of default exported resources (#1970)
fredr Jun 23, 2025
fbc4204
add to/from sql for postgres type name (#1981)
fredr Jun 24, 2025
7e425d5
Avoid fetching secrets when rendering dashboard migration status (#1983)
ekerfelt Jun 26, 2025
acf55f4
Try to mitigate cue race bug (#1987)
ekerfelt Jul 1, 2025
9e9118d
fix new clippy lints (#1998)
fredr Jul 8, 2025
7efba84
runtime/core: refactor streaming reporting (#1948)
fredr Jul 9, 2025
741f026
handle logging in a separate thread, and pass logs via bounded channe…
fredr Jul 9, 2025
ef51006
runtimes/core: write logs in batches (#2001)
fredr Jul 14, 2025
00fab70
Update nestjs.md fixing a typo (#2006)
yf-hk Jul 15, 2025
2e18ce8
Fix CI step "Install encore-go" (#2008)
fredr Jul 16, 2025
c605bc6
Renew prisma docs (#2007)
fredr Jul 16, 2025
386d4b1
Make docker builds lazy-write tarball (#2010)
eandre Jul 16, 2025
e376785
remove use of unregistered languages (#2012)
fredr Jul 17, 2025
5eddd6b
fix: add CREATEROLE permissions in daemon AdminRole (#1991)
cherbie-hugo Jul 17, 2025
dc623f1
Revert "Make docker builds lazy-write tarball" (#2013)
eandre Jul 17, 2025
f2846ca
return the concrete underlying mapped type (#2014)
fredr Jul 17, 2025
98b1c24
fix: export `Remover` for object storage (#1986)
tom-groves Jul 17, 2025
8c08682
resolve namespaced import (#2015)
fredr Jul 21, 2025
95779a4
bump zerolog (#2018)
fredr Jul 22, 2025
1059df2
Fix lazy-write of tarballs (#2016)
eandre Jul 31, 2025
14e5d7c
log errors from gcp auth lib (#2022)
fredr Aug 1, 2025
56b616c
Support ENCORE_APP_META_PATH in test mode (#2027)
eandre Aug 6, 2025
1fd1e38
Resolve new clippy warnings (#2036)
fredr Aug 12, 2025
f707056
Update faq.md (#2041)
marcuskohlberg Aug 14, 2025
c0c1b85
use background context for cleaning up test databases (#2034)
fredr Aug 14, 2025
2595922
runtimes/go: add method to request (#2039)
fredr Aug 14, 2025
572c98a
runtimes/go: make it possible to add respone headers from middleware …
fredr Aug 15, 2025
d498541
runtime check usage of et package instead of when parsing (#2037)
fredr Aug 15, 2025
8d14174
Optimize DB setup (#2032)
wilianto Aug 18, 2025
899f11c
hide internal method in middleware docs (#2044)
fredr Aug 18, 2025
0bcf235
runtimes/go: add support for setting custom http status codes (#2042)
fredr Aug 21, 2025
a99ba79
runtimes/core+js: add support for setting custom http status codes (#…
fredr Aug 21, 2025
02ab6ab
docs: add docs for custom http statuses (#2048)
fredr Aug 21, 2025
fccf741
Add TryWithLeap component to quick start guide (#2049)
simon-johansson Aug 21, 2025
92648b3
runtimes/core: enable tls for tokio-tungstenite (#2051)
fredr Aug 22, 2025
5c72f6a
fix: small possible typo in the doc (#2053)
jamesmindev Aug 26, 2025
9533f5c
Add new instructions for vscode vitest workaround (#1607)
yingzhox Aug 26, 2025
94ee143
Remove redaction section from ts tracing docs (#1963)
asiFarran Aug 28, 2025
f52aec9
clientgen: Fix missing documentation in OpenAPI schema generation (#2…
twindebank Sep 2, 2025
e431c83
use correct language (#2054)
fredr Sep 3, 2025
fc4da1f
runtimes/core: add support for pgvector type (#2055)
fredr Sep 9, 2025
f0264fb
runtimes/js: add tags to stream endpoints options (#2056)
fredr Sep 9, 2025
40532c6
runtimes/core+js: add option to redact tracing details for endpoint (…
fredr Sep 10, 2025
f19e897
runtimes/go: fix custom http status on external service to service ca…
fredr Sep 10, 2025
fc7b39b
docs/ts: sensitive api option (#2059)
fredr Sep 10, 2025
e7bb61d
added open in cursor to mcp docs (#2060)
ivancernja Sep 12, 2025
f911d6f
use HTML link format for cursor deeplink button (#2061)
ivancernja Sep 12, 2025
5ab527c
final cursor button: remove align-left and update copy (#2062)
ivancernja Sep 12, 2025
4fc024c
tsparser: fix panic in parseutil
eandre Sep 15, 2025
2563ba1
tsparser: validate duplicate sqldb definitions
eandre Sep 15, 2025
039deb4
tsparser: validate sqldb query syntax
eandre Sep 15, 2025
ff214ae
fix swc build
fredr Sep 17, 2025
55e8a31
runtimes/js: output stack traces, error causes
eandre Sep 15, 2025
27bd952
runtimes/js: support for including error stacks in response logs
eandre Sep 16, 2025
ec4dc79
tsparser: validate more sqldb queries
eandre Sep 17, 2025
c0a3bc5
goparser: detect usages for (objects.Bucket).Exists and .Attrs
eandre Sep 17, 2025
7aa7df8
Bump the max NSQ msg size to 10Mb to match gcp (#2076)
ekerfelt Sep 19, 2025
b5482f1
fix new clippy lints (#2080)
fredr Sep 19, 2025
5540ff8
error cause: dont coerce into object if val is undefined or null (#2079)
fredr Sep 19, 2025
bd82737
Add docs for member management api (#2077)
ekerfelt Sep 22, 2025
9e0f601
parser: support literal types in GetConcreteType
eandre Sep 23, 2025
8472ceb
Reduce the clutter in the docker build log (#2085)
ekerfelt Sep 29, 2025
79ea1c4
Add e2e tests for js apps (#2084)
fredr Oct 2, 2025
3469dfa
Add endpoints for db browser (#2087)
ekerfelt Oct 2, 2025
6142ea5
revise migration docs (#2088)
marcuskohlberg Oct 2, 2025
9733be2
Revise migration article (#2089)
marcuskohlberg Oct 2, 2025
c51fc32
Add support for arbitrary precision numbers (#2083)
fredr Oct 2, 2025
789bf0d
cli: refactor trace store, break out jsonext package
eandre Oct 2, 2025
b18ec04
runtimes/js: dont fail on re-init type constructors (#2091)
fredr Oct 2, 2025
fc743ac
runtime/js: type constructors fix (#2092)
fredr Oct 2, 2025
fd54389
runtimes/js: add per-env type constructors
eandre Oct 3, 2025
0e7d186
Update runtimes/js/src/napi_util.rs
eandre Oct 6, 2025
fc2e4b8
add simple e2e test that enabled worker pooling (#2096)
fredr Oct 6, 2025
ca5967a
Add 'encore secret check' command
Mugesh2024rj Oct 10, 2025
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
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.24

RUN apt-get update && apt-get install -y sudo
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - && \
apt-get install -y nodejs

ADD scripts /scripts
RUN bash /scripts/install.sh
RUN bash /scripts/godeps.sh

ENV ENCORE_GOROOT=/encore-release/encore-go
10 changes: 10 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"build": {"dockerfile": "Dockerfile"},
"containerEnv": {
"ENCORE_DAEMON_DEV": "1",
"ENCORE_RUNTIMES_PATH": "${containerWorkspaceFolder}/runtimes"
},
"extensions": ["golang.go"],
"postCreateCommand": "bash /scripts/prepare.sh",
"forwardPorts": [4000, 9400]
}
15 changes: 15 additions & 0 deletions .devcontainer/scripts/godeps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env
set -ex

go install github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest
go install github.com/ramya-rao-a/go-outline@latest
go install github.com/cweill/gotests/gotests@latest
go install github.com/fatih/gomodifytags@latest
go install github.com/josharian/impl@latest
go install github.com/haya14busa/goplay/cmd/goplay@latest
go install github.com/go-delve/delve/cmd/dlv@latest
go install honnef.co/go/tools/cmd/staticcheck@master
go install golang.org/x/tools/gopls@latest

GOBIN=/tmp/ go install github.com/go-delve/delve/cmd/dlv@master
mv /tmp/dlv $GOPATH/bin/dlv-dap
41 changes: 41 additions & 0 deletions .devcontainer/scripts/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
set -e

target="$(go env GOOS)_$(go env GOARCH)"

encore_uri=$(curl -sSf -N "https://encore.dev/api/releases?target=${target}&show=url")
if [ ! "$encore_uri" ]; then
echo "Error: Unable to determine latest Encore release." 1>&2
exit 1
fi

encore_install="/encore-release"
bin_dir="$encore_install/bin"
exe="$bin_dir/encore"
tar="$encore_install/encore.tar.gz"

if [ ! -d "$bin_dir" ]; then
mkdir -p "$bin_dir"
fi

curl --fail --location --progress-bar --output "$tar" "$encore_uri"
cd "$encore_install"
tar -C "$encore_install" -xzf "$tar"
chmod +x "$bin_dir"/*
rm "$tar"

"$exe" version

echo "Encore was installed successfully to $exe"
if command -v encore >/dev/null; then
echo "Run 'encore --help' to get started"
else
case $SHELL in
/bin/zsh) shell_profile=".zshrc" ;;
*) shell_profile=".bash_profile" ;;
esac
echo "Manually add the directory to your \$HOME/$shell_profile (or similar)"
echo " export ENCORE_INSTALL=\"$encore_install\""
echo " export PATH=\"\$ENCORE_INSTALL/bin:\$PATH\""
echo "Run '$exe --help' to get started"
fi
6 changes: 6 additions & 0 deletions .devcontainer/scripts/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -e
set -x

go mod download
17 changes: 17 additions & 0 deletions .github/dockerimg/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# syntax=docker/dockerfile:1.4
FROM --platform=$TARGETPLATFORM ubuntu:22.04 AS build
ARG TARGETPLATFORM
ARG RELEASE_VERSION
RUN mkdir /encore
ADD rename-binary-if-needed.bash rename-binary-if-needed.bash
ADD artifacts /artifacts
RUN /bin/bash -c 'SRC=encore-$(echo $TARGETPLATFORM | tr '/' '_'); tar -C /encore -xzf /artifacts/$SRC.tar.gz'
RUN /bin/bash rename-binary-if-needed.bash

FROM --platform=$TARGETPLATFORM ubuntu:22.04
RUN apt-get update && apt-get install -y -f ca-certificates
ENV PATH="/encore/bin:${PATH}"
WORKDIR /src
ADD encore-entrypoint.bash /bin/encore-entrypoint.bash
ENTRYPOINT ["/bin/encore-entrypoint.bash"]
COPY --from=build /encore /encore
11 changes: 11 additions & 0 deletions .github/dockerimg/encore-entrypoint.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -eo pipefail

# If the ENCORE_AUTHKEY environment variable is set, log in with it.
if [ -n "$ENCORE_AUTHKEY" ]; then
echo "Logging in to Encore using provided auth key..."
encore auth login --auth-key "$ENCORE_AUTHKEY"
fi

# Run the encore command.
encore "$@"
16 changes: 16 additions & 0 deletions .github/dockerimg/rename-binary-if-needed.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eo pipefail

# Check if `encore-nightly`, `encore-beta` or `encore-develop` are present, and if one of them are, rename it to `encore`.
for binary in encore-nightly encore-beta encore-develop; do
if [ -f "/encore/bin/$binary" ]; then
echo "Renaming $binary to encore..."
mv /encore/bin/$binary /encore/bin/encore
fi
done

# Sanity check that /ecore/bin/encore exists.
if [ ! -f "/encore/bin/encore" ]; then
echo "ERROR: /encore/bin/encore does not exist. Did you mount the Encore binary directory to /encore/bin?"
exit 1
fi
Loading