-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
81 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# syntax=docker/dockerfile:1.7-labs | ||
# $stax.section args | ||
FROM ubuntu:${UBUNTU_VERSION} AS base | ||
|
||
# $stax.section stages | ||
|
||
FROM base AS final | ||
# $stax.section final |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
!import ./services.yaml as services | ||
|
||
stax: | ||
workspace_volume: ${{ stax.app }}-workspace | ||
workspace: /workspaces/${{ stax.app }} | ||
vars: | ||
rails_server_port: 3000 | ||
ubuntu_version: 24.04 | ||
|
||
volumes: | ||
shared-home: | ||
${{ stax.workspace_volume }}: | ||
|
||
services: | ||
web: !extends services.web |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
environment: | ||
PATH: /usr/local/bin:/usr/bin:/bin | ||
build: | ||
context: ${{ resolve_relative ../build }} | ||
dockerfile: ${{ resolve_relative ../build/Dockerfile }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
!import ./service.yaml as service | ||
|
||
web: !extends service | ||
command: bin/rails server --port ${{ stax.vars.rails_server_port }} --binding 0.0.0.0 | ||
expose: | ||
- ${{ stax.vars.rails_server_port }} | ||
labels: | ||
caddy: "${{ dasherize stax.app }}.d3v.localhost" | ||
caddy.reverse_proxy: "{{ upstreams ${{ stax.vars.rails_server_port }} }}" | ||
|
||
sidekiq: !extends service | ||
command: /usr/local/bin/launch bundle exec sidekiq |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
!import imports/base.yaml as base | ||
|
||
!extends base | ||
|
||
stax: !extends base.stax | ||
app: some_service | ||
vars: !extends base.stax.vars | ||
ruby_version: 2.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { describe, it, expect, beforeEach } from 'bun:test' | ||
import { mkdirSync,rmSync } from 'fs' | ||
import Staxfile from '~/staxfile' | ||
import path from 'path' | ||
|
||
describe('Staxfile', () => { | ||
let staxfile | ||
const cacheDir = path.join(__dirname, '../../tmp/tests-staxfile-cache') | ||
|
||
beforeEach(() => { | ||
rmSync(cacheDir, { recursive: true, force: true }) | ||
mkdirSync(cacheDir, { recursive: true }) | ||
staxfile = new Staxfile({ context: 'tests', source: './tests/fixtures', staxfile: './tests/fixtures/some_service.staxfile' }, { cacheDir }) | ||
}) | ||
|
||
it('compiles', async () => { | ||
staxfile.compile({ force: true }) | ||
console.log(staxfile.config) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters