Skip to content

Commit

Permalink
airbyte example environment for flox
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Oct 16, 2024
1 parent c5208f4 commit 8954bb5
Show file tree
Hide file tree
Showing 4 changed files with 269 additions and 0 deletions.
4 changes: 4 additions & 0 deletions airbyte/.flox/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
run/
cache/
lib/
log/
4 changes: 4 additions & 0 deletions airbyte/.flox/env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "airbyte",
"version": 1
}
181 changes: 181 additions & 0 deletions airbyte/.flox/env/manifest.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
{
"lockfile-version": 1,
"manifest": {
"version": 1,
"install": {
"abctl": {
"pkg-path": "abctl",
"pkg-group": "abctl",
"systems": [
"x86_64-linux"
]
},
"gum": {
"pkg-path": "gum"
}
},
"hook": {
"on-activate": "echo \"This script sets up your Airbyte credentials.\"\n\nemail=$(gum input --placeholder \"Enter your email address\")\n\norganization=$(gum input --placeholder \"Enter your organization name\")\n\ncredentials_output=$(abctl local credentials)\n\npassword=$(echo \"$credentials_output\" | grep \"Password:\" | awk '{print $2}')\n\nabctl local credentials --email \"$email\"\n\nabctl local credentials --password \"$password\"\n\n# Provide feedback to the user\necho \"Your email and password have been set for your Airbyte instance.\"\necho \"Email: $email\"\necho \"Password: $password\"\n\n\n"
},
"profile": {},
"options": {
"systems": [
"aarch64-darwin",
"aarch64-linux",
"x86_64-darwin",
"x86_64-linux"
],
"allow": {
"licenses": []
},
"semver": {}
}
},
"packages": [
{
"attr_path": "abctl",
"broken": false,
"derivation": "/nix/store/9faavn7939msja3s7l5pg3c990xakv4y-abctl-0.13.1.drv",
"description": "Airbyte's CLI for managing local Airbyte installations",
"install_id": "abctl",
"license": "MIT",
"locked_url": "https://github.com/flox/nixpkgs?rev=a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"name": "abctl-0.13.1",
"pname": "abctl",
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"rev_count": 692963,
"rev_date": "2024-10-14T06:48:30Z",
"scrape_date": "2024-10-16T03:55:11Z",
"stabilities": [
"unstable"
],
"unfree": false,
"version": "0.13.1",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/wbqgl7kgy4xn5hknj8hvs51mw1nmw1i4-abctl-0.13.1"
},
"system": "x86_64-linux",
"group": "abctl",
"priority": 5
},
{
"attr_path": "gum",
"broken": false,
"derivation": "/nix/store/ippvngi4fvlm7wcjv66q35882kk0d782-gum-0.14.5.drv",
"description": "Tasty Bubble Gum for your shell",
"install_id": "gum",
"license": "MIT",
"locked_url": "https://github.com/flox/nixpkgs?rev=a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"name": "gum-0.14.5",
"pname": "gum",
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"rev_count": 692963,
"rev_date": "2024-10-14T06:48:30Z",
"scrape_date": "2024-10-16T03:55:11Z",
"stabilities": [
"unstable"
],
"unfree": false,
"version": "0.14.5",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/s4yb9a7cvj5vd5yw0nvssf51lmpa5id0-gum-0.14.5"
},
"system": "aarch64-darwin",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "gum",
"broken": false,
"derivation": "/nix/store/yjf86f3qgpirr5lc9wsds4nlqyf8riw0-gum-0.14.5.drv",
"description": "Tasty Bubble Gum for your shell",
"install_id": "gum",
"license": "MIT",
"locked_url": "https://github.com/flox/nixpkgs?rev=a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"name": "gum-0.14.5",
"pname": "gum",
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"rev_count": 692963,
"rev_date": "2024-10-14T06:48:30Z",
"scrape_date": "2024-10-16T03:55:11Z",
"stabilities": [
"unstable"
],
"unfree": false,
"version": "0.14.5",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/bw0ii1jjvxd8albrmvi0lin6h1ssz4yi-gum-0.14.5"
},
"system": "aarch64-linux",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "gum",
"broken": false,
"derivation": "/nix/store/db7hhax9rfpj0gl677sqcm1s5gfjkmrc-gum-0.14.5.drv",
"description": "Tasty Bubble Gum for your shell",
"install_id": "gum",
"license": "MIT",
"locked_url": "https://github.com/flox/nixpkgs?rev=a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"name": "gum-0.14.5",
"pname": "gum",
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"rev_count": 692963,
"rev_date": "2024-10-14T06:48:30Z",
"scrape_date": "2024-10-16T03:55:11Z",
"stabilities": [
"unstable"
],
"unfree": false,
"version": "0.14.5",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/zidlqhd8qq8wljvm38j1j4izx8ww7aps-gum-0.14.5"
},
"system": "x86_64-darwin",
"group": "toplevel",
"priority": 5
},
{
"attr_path": "gum",
"broken": false,
"derivation": "/nix/store/vsq73s5cq771rh6nz9hsjhiy74xsyh1r-gum-0.14.5.drv",
"description": "Tasty Bubble Gum for your shell",
"install_id": "gum",
"license": "MIT",
"locked_url": "https://github.com/flox/nixpkgs?rev=a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"name": "gum-0.14.5",
"pname": "gum",
"rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"rev_count": 692963,
"rev_date": "2024-10-14T06:48:30Z",
"scrape_date": "2024-10-16T03:55:11Z",
"stabilities": [
"unstable"
],
"unfree": false,
"version": "0.14.5",
"outputs_to_install": [
"out"
],
"outputs": {
"out": "/nix/store/kma26ygxqp39pm6fl32yjach0czasc3j-gum-0.14.5"
},
"system": "x86_64-linux",
"group": "toplevel",
"priority": 5
}
]
}
80 changes: 80 additions & 0 deletions airbyte/.flox/env/manifest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#
# This is a Flox environment manifest.
# Visit flox.dev/docs/concepts/manifest/
# or see flox-edit(1), manifest.toml(5) for more information.
#
# Flox manifest version managed by Flox CLI
version = 1

# List packages you wish to install in your environment inside
# the `[install]` section.
[install]
abctl.pkg-path = "abctl"
abctl.pkg-group = "abctl"
abctl.systems = ["x86_64-linux"]
gum.pkg-path = "gum"
# hello.pkg-path = "hello"
# nodejs = { version = "^20.15.1", pkg-path = "nodejs" }

# Set environment variables in the `[vars]` section. These variables may not
# reference one another, and are added to the environment without first
# expanding them. They are available for use in the `[profile]` and `[hook]`
# scripts.
[vars]
# message = "Howdy"

# systems
#[services.airbyte]
#command = "abctl local install"

# The `hook.on-activate` script is run by the *bash* shell immediately upon
# activating an environment, and will not be invoked if Flox detects that the
# environment has previously been activated. Variables set by the script will
# be inherited by `[profile]` scripts defined below. Note that any stdout
# generated by the script will be redirected to stderr.
[hook]
on-activate = '''
echo "This script sets up your Airbyte credentials."
email=$(gum input --placeholder "Enter your email address")
organization=$(gum input --placeholder "Enter your organization name")
credentials_output=$(abctl local credentials)
password=$(echo "$credentials_output" | grep "Password:" | awk '{print $2}')
abctl local credentials --email "$email"
abctl local credentials --password "$password"
# Provide feedback to the user
echo "Your email and password have been set for your Airbyte instance."
echo "Email: $email"
echo "Password: $password"
'''

# Scripts defined in the `[profile]` section are *sourced* by *your shell* and
# inherit environment variables set in the `[vars]` section and by `[hook]` scripts.
# The `profile.common` script is sourced by all shells and special care should be
# taken to ensure compatibility with all shells, after which exactly one of
# `profile.{bash,fish,tcsh,zsh}` is sourced by the corresponding shell.
[profile]
# common = '''
# echo "it's gettin' flox in here"
# '''

# The `[services]` section of the manifest allows you to define services.
# Services defined here use the packages provided by the `[install]` section
# and any variables you've defined in the `[vars]` section or `hook.on-activate` script.
[services]
# postgres.command = "postgres --config-file=pg.conf"

# Additional options can be set in the `[options]` section. Refer to
# manifest.toml(5) for a list of available options.
[options]
systems = ["aarch64-darwin", "aarch64-linux", "x86_64-darwin", "x86_64-linux"]
# Uncomment to disable CUDA detection.
# cuda-detection = false

0 comments on commit 8954bb5

Please sign in to comment.