Skip to content

Commit 73262f4

Browse files
committed
Merge branch 'main' into edw-remove-pg-byod-warning
2 parents d77570d + 498fa2c commit 73262f4

File tree

145 files changed

+1057
-307
lines changed

Some content is hidden

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

145 files changed

+1057
-307
lines changed

.github/workflows/build-samples-json.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
uses: peter-evans/repository-dispatch@v1
1515
with:
1616
token: ${{ secrets.DOCS_ACTION_TRIGGER_TOKEN }}
17-
repository: defang-io/defang-docs
17+
repository: DefangLabs/defang-docs
1818
event-type: sample-update

.github/workflows/go.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,6 @@ jobs:
149149
MACOS_NOTARIZATION_TEAM_ID: ${{ secrets.MACOS_NOTARIZATION_TEAM_ID }}
150150
MACOS_NOTARIZATION_APP_PW: ${{ secrets.MACOS_NOTARIZATION_APP_PW }}
151151

152-
- name: Trigger CLI Autodoc
153-
uses: peter-evans/repository-dispatch@v1
154-
with:
155-
token: ${{ secrets.DOCS_ACTION_TRIGGER_TOKEN }}
156-
repository: defang-io/defang-docs
157-
event-type: cli-autodoc
158-
client-payload: '{"version": "${{ github.ref_name }}"}'
159-
160152
publish-npm-binaries:
161153
runs-on: ubuntu-latest
162154
needs: go-release
@@ -171,6 +163,14 @@ jobs:
171163
working-directory: ./pkgs/npm
172164

173165
steps:
166+
- name: Trigger CLI Autodoc
167+
uses: peter-evans/repository-dispatch@v1
168+
with:
169+
token: ${{ secrets.DOCS_ACTION_TRIGGER_TOKEN }}
170+
repository: DefangLabs/defang-docs
171+
event-type: cli-autodoc
172+
client-payload: '{"version": "${{ github.ref_name }}"}'
173+
174174
- name: Checkout tag
175175
uses: actions/checkout@v4
176176

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ node_modules/
55
/result
66

77

8-
.log
8+
*.log
9+
*.txt
910
.gitignore
11+
*-lock.json

README.md

Lines changed: 40 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,98 @@
1-
[![Go package](https://github.com/defang-io/defang/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/defang-io/defang/actions/workflows/go.yml)
1+
[![Go package](https://github.com/DefangLabs/defang/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/DefangLabs/defang/actions/workflows/go.yml)
22

33
# Defang
4+
45
Defang is a radically simpler way for developers to create, deploy, and manage cloud applications.
56

67
This repo includes:
7-
* Public releases of the Defang CLI; [click here](https://github.com/defang-io/defang/releases/latest/) for the latest version
8+
* Public releases of the Defang CLI; [click here](https://github.com/DefangLabs/defang/releases/latest/) for the latest version
89
* Samples in Golang, Python, and Node.js that show how to accomplish various tasks and deploy them to the DOP using a Docker Compose file using the Defang CLI.
9-
* Samples that show how to deploy an app using the [Defang Pulumi Provider](https://github.com/defang-io/pulumi-defang).
10+
* Samples that show how to deploy an app using the [Defang Pulumi Provider](https://github.com/DefangLabs/pulumi-defang).
1011

1112
## Getting started
1213
* Read our [Getting Started](https://docs.defang.io/docs/getting-started) page
1314
* Follow the installation instructions from the [Installing](https://docs.defang.io/docs/getting-started/installing) page
14-
* Take a look at our [Samples folder](https://github.com/defang-io/defang/tree/main/samples) for example projects in various programming languages.
15+
* Take a look at our [Samples folder](https://github.com/DefangLabs/defang/tree/main/samples) for example projects in various programming languages.
1516
* Try the AI integration by running `defang generate`
1617
* Start your new service with `defang compose up`
1718

1819
## Installing
20+
1921
Install the Defang CLI from one of the following sources:
20-
* Using the [Homebrew](https://brew.sh) package manager [defang-io/defang tap](https://github.com/defang-io/homebrew-defang):
22+
* Using the [Homebrew](https://brew.sh) package manager [DefangLabs/defang tap](https://github.com/DefangLabs/homebrew-defang):
2123
```
22-
brew install defang-io/defang/defang
24+
brew install DefangLabs/defang/defang
2325
```
24-
* Using a shell script:
26+
- Using a shell script:
2527
```
2628
. <(curl -Ls https://s.defang.io/install)
2729
```
28-
* Using [Go](https://go.dev):
30+
- Using [Go](https://go.dev):
2931
```
30-
go install github.com/defang-io/defang/src/cmd/cli@latest
32+
go install github.com/DefangLabs/defang/src/cmd/cli@latest
3133
```
32-
* Using the [Nix package manager](https://nixos.org):
33-
* with Nix-Env:
34+
- Using the [Nix package manager](https://nixos.org):
35+
- with Nix-Env:
3436
```
35-
nix-env -if https://github.com/defang-io/defang/archive/main.tar.gz
37+
nix-env -if https://github.com/DefangLabs/defang/archive/main.tar.gz
3638
```
37-
* or with Flakes:
39+
- or with Flakes:
3840
```
39-
nix profile install github:defang-io/defang#defang-bin --refresh
41+
nix profile install github:DefangLabs/defang#defang-bin --refresh
4042
```
41-
* Download the [latest binary](https://github.com/defang-io/defang/releases/latest/) of the Defang CLI. For this beta, MacOS users will have to explicitly allow running of downloaded programs in the OS security settings.
43+
* Download the [latest binary](https://github.com/DefangLabs/defang/releases/latest/) of the Defang CLI. For this beta, MacOS users will have to explicitly allow running of downloaded programs in the OS security settings.
4244
4345
## Support
44-
* File any issues [right here on GitHub](https://github.com/defang-io/defang/issues)
46+
* File any issues [right here on GitHub](https://github.com/DefangLabs/defang/issues)
4547
4648
## Command completion
49+
4750
The Defang CLI supports command completion for Bash, Zsh, Fish, and Powershell. To get the shell script for command completion, run the following command:
51+
4852
```
4953
defang completion [bash|zsh|fish|powershell]
5054
```
5155
5256
If you're using Bash, you can add the following to your `~/.bashrc` file:
57+
5358
```
5459
source <(defang completion bash)
5560
```
5661
5762
If you're using Zsh, you can add the following to your `~/.zshrc` file:
63+
5864
```
5965
source <(defang completion zsh)
6066
```
67+
6168
or pipe the output to a file called `_defang` in the directory with the completions.
6269
6370
If you're using Fish, you can add the following to your `~/.config/fish/config.fish` file:
71+
6472
```
6573
defang completion fish | source
6674
```
6775
6876
If you're using Powershell, you can add the following to your `$HOME\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` file:
77+
6978
```
7079
Invoke-Expression -Command (defang completion powershell | Out-String)
7180
```
7281
7382
## Environment Variables
83+
7484
The Defang CLI recognizes the following environment variables:
75-
* `COMPOSE_PROJECT_NAME` - The name of the project to use; overrides the name in the `compose.yaml` file
76-
* `DEFANG_ACCESS_TOKEN` - The access token to use for authentication; if not specified, uses token from `defang login`
77-
* `DEFANG_CD_BUCKET` - The S3 bucket to use for the BYOC CD pipeline; defaults to `defang-cd-bucket-…`
78-
* `DEFANG_CD_IMAGE` - The image to use for the Continuous Deployment (CD) pipeline; defaults to `public.ecr.aws/defang-io/cd:public-beta`
79-
* `DEFANG_DEBUG` - set this to `1` or `true` to enable debug logging
80-
* `DEFANG_DISABLE_ANALYTICS` - If set to `true`, disables sending analytics to Defang; defaults to `false`
81-
* `DEFANG_FABRIC` - The address of the Defang Fabric to use; defaults to `fabric-prod1.defang.dev`
82-
* `DEFANG_HIDE_HINTS` - If set to `true`, hides hints in the CLI output; defaults to `false`
83-
* `DEFANG_HIDE_UPDATE` - If set to `true`, hides the update notification; defaults to `false`
84-
* `DEFANG_PROVIDER` - The name of the cloud provider to use, `auto` (default), `aws`, or `defang`
85-
* `NO_COLOR` - If set to any value, disables color output; by default, color output is enabled depending on the terminal
86-
* `TZ` - The timezone to use for log timestamps: an IANA TZ name like `UTC` or `Europe/Amsterdam`; defaults to `Local`
87-
* `XDG_STATE_HOME` - The directory to use for storing state; defaults to `~/.local/state`
85+
86+
- `COMPOSE_PROJECT_NAME` - The name of the project to use; overrides the name in the `compose.yaml` file
87+
- `DEFANG_ACCESS_TOKEN` - The access token to use for authentication; if not specified, uses token from `defang login`
88+
- `DEFANG_CD_BUCKET` - The S3 bucket to use for the BYOC CD pipeline; defaults to `defang-cd-bucket-…`
89+
- `DEFANG_CD_IMAGE` - The image to use for the Continuous Deployment (CD) pipeline; defaults to `public.ecr.aws/defang-io/cd:public-beta`
90+
- `DEFANG_DEBUG` - set this to `1` or `true` to enable debug logging
91+
- `DEFANG_DISABLE_ANALYTICS` - If set to `true`, disables sending analytics to Defang; defaults to `false`
92+
- `DEFANG_FABRIC` - The address of the Defang Fabric to use; defaults to `fabric-prod1.defang.dev`
93+
- `DEFANG_HIDE_HINTS` - If set to `true`, hides hints in the CLI output; defaults to `false`
94+
- `DEFANG_HIDE_UPDATE` - If set to `true`, hides the update notification; defaults to `false`
95+
- `DEFANG_PROVIDER` - The name of the cloud provider to use, `auto` (default), `aws`, or `defang`
96+
- `NO_COLOR` - If set to any value, disables color output; by default, color output is enabled depending on the terminal
97+
- `TZ` - The timezone to use for log timestamps: an IANA TZ name like `UTC` or `Europe/Amsterdam`; defaults to `Local`
98+
- `XDG_STATE_HOME` - The directory to use for storing state; defaults to `~/.local/state`

pkgs/defang/default.nix

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ system ? builtins.currentSystem
1010
}:
1111
let
1212
shaMap = {
13-
x86_64-linux = "1958pxh2jrjr9f9xdvg70a6plmzklxnrzf3fk2451wy4zrb3klkp";
14-
aarch64-linux = "1krsjbfl3icrp4ppdjjmwhcvg66i7gaqpvhc65iyg4lnhvc23ln9";
15-
x86_64-darwin = "1b4bmks0nq1g0ixih6k947dw11gg71y5xsihzryvam0af2z1nhnb";
16-
aarch64-darwin = "1b4bmks0nq1g0ixih6k947dw11gg71y5xsihzryvam0af2z1nhnb";
13+
x86_64-linux = "0q6zqnxni9vh73fjmsfk6ppbh4m9dwj1mvxin1gxwnbcj9hsywd6";
14+
aarch64-linux = "04km33v76z3w5jyhrxrlkvgaya97yqbljm5g27rcwf7xxj3grlaf";
15+
x86_64-darwin = "02dr4nbbq5k3kqw0jgj51r2bk78nkxaz35wqp34y471r427vc1ly";
16+
aarch64-darwin = "02dr4nbbq5k3kqw0jgj51r2bk78nkxaz35wqp34y471r427vc1ly";
1717
};
1818

1919
urlMap = {
20-
x86_64-linux = "https://github.com/defang-io/defang/releases/download/v0.5.16/defang_0.5.16_linux_amd64.tar.gz";
21-
aarch64-linux = "https://github.com/defang-io/defang/releases/download/v0.5.16/defang_0.5.16_linux_arm64.tar.gz";
22-
x86_64-darwin = "https://github.com/defang-io/defang/releases/download/v0.5.16/defang_0.5.16_macOS.zip";
23-
aarch64-darwin = "https://github.com/defang-io/defang/releases/download/v0.5.16/defang_0.5.16_macOS.zip";
20+
x86_64-linux = "https://github.com/DefangLabs/defang/releases/download/v0.5.19/defang_0.5.19_linux_amd64.tar.gz";
21+
aarch64-linux = "https://github.com/DefangLabs/defang/releases/download/v0.5.19/defang_0.5.19_linux_arm64.tar.gz";
22+
x86_64-darwin = "https://github.com/DefangLabs/defang/releases/download/v0.5.19/defang_0.5.19_macOS.zip";
23+
aarch64-darwin = "https://github.com/DefangLabs/defang/releases/download/v0.5.19/defang_0.5.19_macOS.zip";
2424
};
2525
in
2626
stdenvNoCC.mkDerivation {
2727
pname = "defang";
28-
version = "0.5.16";
28+
version = "0.5.19";
2929
src = fetchurl {
3030
url = urlMap.${system};
3131
sha256 = shaMap.${system};
@@ -49,7 +49,7 @@ stdenvNoCC.mkDerivation {
4949
system = system;
5050

5151
meta = {
52-
description = "Command-line interface for the Defang Opinionated Platform";
52+
description = "Defang is easiest way for developers to create and deploy their containerized applications";
5353
homepage = "https://defang.io/";
5454
license = lib.licenses.mit;
5555

pkgs/npm/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"defang": "./bin/cli.js"
99
},
1010
"keywords": [],
11-
"homepage": "https://github.com/defang-io/defang#readme",
11+
"homepage": "https://github.com/DefangLabs/defang#readme",
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/defang-io/defang.git"
14+
"url": "git+https://github.com/DefangLabs/defang.git"
1515
},
1616
"bugs": {
17-
"url": "https://github.com/defang-io/defang/issues"
17+
"url": "https://github.com/DefangLabs/defang/issues"
1818
},
1919
"scripts": {
2020
"build": "tsc",

pkgs/npm/src/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function downloadAppArchive(
1010
archiveFilename: string,
1111
outputPath: string
1212
): Promise<string> {
13-
const repo = "defang-io/defang";
13+
const repo = "DefangLabs/defang";
1414
const downloadUrl = `https://github.com/${repo}/releases/download/v${version}/${archiveFilename}`;
1515
const downloadTargetFile = path.join(outputPath, archiveFilename);
1616

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This file was generated by GoReleaser. DO NOT EDIT.
2+
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.6.0.schema.json
3+
PackageIdentifier: DefangLabs.defang
4+
PackageVersion: 0.5.18
5+
InstallerLocale: en-US
6+
InstallerType: zip
7+
ReleaseDate: "2024-05-17"
8+
Installers:
9+
- Architecture: arm64
10+
NestedInstallerType: portable
11+
NestedInstallerFiles:
12+
- RelativeFilePath: defang.exe
13+
PortableCommandAlias: defang
14+
InstallerUrl: https://github.com/DefangLabs/defang/releases/download/v0.5.18/defang_0.5.18_windows_arm64.zip
15+
InstallerSha256: a0ce31f84d5f474dd54ded225ad0f68d250062f4372a82caaf1dbbd458a1facb
16+
UpgradeBehavior: uninstallPrevious
17+
- Architecture: x64
18+
NestedInstallerType: portable
19+
NestedInstallerFiles:
20+
- RelativeFilePath: defang.exe
21+
PortableCommandAlias: defang
22+
InstallerUrl: https://github.com/DefangLabs/defang/releases/download/v0.5.18/defang_0.5.18_windows_amd64.zip
23+
InstallerSha256: 0f7cf85ddd8b51e2e110bb4a2c990eab4fd1fa08d47df319e314738abc00d0a4
24+
UpgradeBehavior: uninstallPrevious
25+
ManifestType: installer
26+
ManifestVersion: 1.6.0
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file was generated by GoReleaser. DO NOT EDIT.
2+
# yaml-language-server: $schema=https://aka.ms/winget-manifest.defaultLocale.1.6.0.schema.json
3+
PackageIdentifier: DefangLabs.defang
4+
PackageVersion: 0.5.18
5+
PackageLocale: en-US
6+
Publisher: DefangLabs
7+
PublisherUrl: https://defang.io/
8+
PublisherSupportUrl: https://github.com/DefangLabs/defang/issues/
9+
PackageName: defang
10+
PackageUrl: https://github.com/DefangLabs/defang/
11+
License: mit
12+
ShortDescription: The Defang command-line interface (CLI)
13+
Description: Defang is easiest way for developers to create and deploy their containerized applications to the cloud
14+
Moniker: defang
15+
ManifestType: defaultLocale
16+
ManifestVersion: 1.6.0

pkgs/winget/DefangLabs.defang.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was generated by GoReleaser. DO NOT EDIT.
2+
# yaml-language-server: $schema=https://aka.ms/winget-manifest.version.1.6.0.schema.json
3+
PackageIdentifier: DefangLabs.defang
4+
PackageVersion: 0.5.18
5+
DefaultLocale: en-US
6+
ManifestType: version
7+
ManifestVersion: 1.6.0

0 commit comments

Comments
 (0)