Skip to content

Commit 11883f5

Browse files
committed
fix: adding floci aws/az commands
1 parent 77c2e75 commit 11883f5

41 files changed

Lines changed: 2024 additions & 112 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,6 @@ jobs:
3737
- name: Run unit tests
3838
run: mvn test -B
3939

40-
native-linux-amd64:
41-
name: Native image — linux/amd64
42-
runs-on: ubuntu-latest
43-
timeout-minutes: 45
44-
steps:
45-
- uses: actions/checkout@v4
46-
47-
- uses: graalvm/setup-graalvm@v1
48-
with:
49-
java-version: '25'
50-
distribution: 'graalvm-community'
51-
cache: maven
52-
github-token: ${{ secrets.GITHUB_TOKEN }}
53-
54-
- name: Build native binary
55-
run: mvn clean package -Pnative -DskipTests -B
56-
57-
- name: Smoke test — version
58-
run: ./target/floci version
59-
60-
- name: Smoke test — doctor
61-
run: ./target/floci doctor || true
62-
6340
native-linux-arm64:
6441
name: Native image — linux/arm64
6542
runs-on: ubuntu-24.04-arm
@@ -79,3 +56,6 @@ jobs:
7956

8057
- name: Smoke test — version
8158
run: ./target/floci version
59+
60+
- name: Smoke test — doctor
61+
run: ./target/floci doctor || true

.github/workflows/release.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Release
22

33
# Triggered when a SemVer tag (e.g. 0.1.0) is pushed.
4-
# Builds native binaries for all 5 platform targets and creates a GitHub Release.
4+
# Builds native binaries for 4 platform targets and creates a GitHub Release.
55

66
on:
77
push:
@@ -54,25 +54,6 @@ jobs:
5454
name: floci-linux-arm64
5555
path: target/floci-linux-arm64
5656

57-
build-darwin-amd64:
58-
name: Build — darwin/amd64
59-
runs-on: macos-13
60-
timeout-minutes: 45
61-
steps:
62-
- uses: actions/checkout@v4
63-
- uses: graalvm/setup-graalvm@v1
64-
with:
65-
java-version: '25'
66-
distribution: 'graalvm-community'
67-
cache: maven
68-
github-token: ${{ secrets.GITHUB_TOKEN }}
69-
- run: mvn clean package -Pnative -DskipTests -B
70-
- run: mv target/floci target/floci-darwin-amd64
71-
- uses: actions/upload-artifact@v4
72-
with:
73-
name: floci-darwin-amd64
74-
path: target/floci-darwin-amd64
75-
7657
build-darwin-arm64:
7758
name: Build — darwin/arm64
7859
runs-on: macos-latest
@@ -130,7 +111,7 @@ jobs:
130111

131112
release:
132113
name: Create GitHub Release
133-
needs: [build-linux-amd64, build-linux-arm64, build-darwin-amd64, build-darwin-arm64, build-windows-amd64, build-jar]
114+
needs: [build-linux-amd64, build-linux-arm64, build-darwin-arm64, build-windows-amd64, build-jar]
134115
runs-on: ubuntu-latest
135116
timeout-minutes: 20
136117
steps:
@@ -178,7 +159,6 @@ jobs:
178159
files: |
179160
dist/floci-linux-amd64/floci-linux-amd64
180161
dist/floci-linux-arm64/floci-linux-arm64
181-
dist/floci-darwin-amd64/floci-darwin-amd64
182162
dist/floci-darwin-arm64/floci-darwin-arm64
183163
dist/floci-windows-amd64/floci-windows-amd64.exe
184164
dist/floci-jar/floci.jar

CHANGELOG.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,31 @@ This project uses [Semantic Versioning](https://semver.org/).
77

88
## [Unreleased]
99

10-
## [0.1.0] — 2024-xx-xx
10+
## [0.1.1] — 2026-05-15
11+
12+
### Added
13+
14+
- `floci az` subcommand group — full Azure emulator lifecycle via `floci az start|stop|restart|status|logs|wait|version|services|doctor|env|snapshot|completion`
15+
- `floci aws` subcommand group — explicit alias for all AWS commands (mirrors bare `floci *`)
16+
- `floci az start` — launches `floci/floci-az:latest` on port 4577, mounts persist dir to `/app/data`
17+
- `floci az env` — prints `AZURE_STORAGE_CONNECTION_STRING` (default) or individual SDK endpoint vars (`--format sdk-vars`); `--service` flag filters to specific services (blob, queue, table, functions, app-config, key-vault)
18+
- `floci az doctor` — Azure-specific diagnostics: all Docker checks against `floci/floci-az` image, plus `az.cli.installed` and `az.cli.connection-string` checks
19+
- `floci config default-product aws|az` — persists the default product to `~/.floci/config.yaml`; bare `floci start` routes to the configured default
20+
- `floci az snapshot` stubs — commands registered but report "not yet available" pending server-side implementation in floci-az
21+
22+
### Changed
23+
24+
- `floci start` now routes to the configured default product (AWS unless overridden with `floci config default-product az`)
25+
- `floci env` and `floci az env` now auto-detect the port from the running container's port mapping instead of using the option default
26+
- CI native build reduced to linux/arm64 only — removed linux/amd64 native job from CI (covered by JVM test job); release still ships all platform binaries
27+
- Release drops darwin/amd64 — `macos-13` Intel runners took 34+ minutes for native-image builds; darwin/arm64 (Apple Silicon) ships instead
28+
29+
### Fixed
30+
31+
- `floci env` reported wrong port when container ran on a non-default port — now calls `resolvedEndpoint()` before extracting port
32+
- `floci az doctor` incorrectly checked for `floci/floci` image — now checks `floci/floci-az`
33+
34+
## [0.1.0] — 2026-05-14
1135

1236
### Added
1337

@@ -27,19 +51,18 @@ This project uses [Semantic Versioning](https://semver.org/).
2751
- `floci snapshot export|import` — stubs pending server implementation
2852
- `floci completion bash|zsh` — generates shell completion scripts
2953
- Global flags: `--endpoint`, `--container`, `--profile`, `--output text|json|yaml`, `--quiet`, `--verbose`, `--no-color`
30-
- GraalVM native binary for linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64
31-
- CI matrix across all 5 platforms with native smoke tests
54+
- GraalVM native binary for linux/amd64, linux/arm64, darwin/arm64, windows/amd64
3255
- Homebrew formula template and automated bump workflow
3356
- Scoop bucket template
3457
- `curl | sh` installer for Linux and macOS
3558
- PowerShell installer for Windows
36-
- Docker image `floci/cli:<version>`
3759

3860
### Known Limitations
3961

4062
- `floci snapshot export` and `floci snapshot import` are stubs — server-side endpoints not yet implemented
4163
- `floci logs --service` filter is not yet supported (requires server-side log routing)
4264
- Shell completion for `fish` and `powershell` is not yet generated by Picocli
4365

44-
[Unreleased]: https://github.com/floci-io/floci-cli/compare/0.1.0...HEAD
66+
[Unreleased]: https://github.com/floci-io/floci-cli/compare/0.1.1...HEAD
67+
[0.1.1]: https://github.com/floci-io/floci-cli/releases/tag/0.1.0...0.1.1
4568
[0.1.0]: https://github.com/floci-io/floci-cli/releases/tag/0.1.0

0 commit comments

Comments
 (0)