Skip to content

Commit

Permalink
🔨 refactor!: removes build from the CLI (#241)
Browse files Browse the repository at this point in the history
Builds are no longer supported in rapyuta.io. Hence this commit
cleans up all its references from the CLI.

BREAKING CHANGE: Builds are no longer supported in Rapyuta.io. Please
use Docker images for creating packages and deployments.
  • Loading branch information
pallabpain authored and RomilShah committed Jan 25, 2024
1 parent a4c61f2 commit bf412ae
Show file tree
Hide file tree
Showing 29 changed files with 18 additions and 1,231 deletions.
10 changes: 0 additions & 10 deletions docs/source/build.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ Rapyuta CLI has commands for all rapyuta.io resources. You can read more about t

Apply <apply>
Authentication <auth>
Build <build>
Chart <chart>
Completion <completion>
Deployment <deployment>
Expand Down
84 changes: 0 additions & 84 deletions riocli/apply/manifests/build.yaml

This file was deleted.

14 changes: 1 addition & 13 deletions riocli/apply/manifests/package-nonros-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,8 @@ spec:
cloud:
replicas: 1 # Required
executables: # Required
- name: "exec-build"
type: build # Options: [docker (default), build, preInstalled]
command: "sleep infinity"
runAsBash: True
simulation: False
limits:
cpu: 0.025 # Unit: Core Options: [Multiple of 0.025, <= 8]
memory: 128 # Unit: MB Options: [Multiple of 128, <= 32768]
build:
depends:
kind: build
nameOrGUID: "build"
- name: "exec-docker"
type: docker # Options: [docker (default), build, preInstalled]
type: docker # Options: [docker (default), preInstalled]
command: "sleep infinity"
runAsBash: True
simulation: False
Expand Down
24 changes: 2 additions & 22 deletions riocli/apply/manifests/package-nonros-device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,8 @@ spec:
arch: amd64 # Options: [arm32v7, arm64v8, amd64]
restart: always # Options: [always, never, onfailure]
executables: # Required
- name: "exec-build"
type: build # Options: [docker (default), build, preInstalled]
command: "roslaunch talker talker.launch"
runAsBash: True
limits: # Optional
cpu: 0.025 # Unit: Core (Optional)
memory: 128 # Unit: MB (Optional)
livenessProbe: # Optional
exec:
command:
- "shell-cmd"
initialDelaySeconds: 5 # Number of seconds after the container has started before liveness probes are initiated.
periodSeconds: 10 # How often (in seconds) to perform the probe.
failureThreshold: 1 # Minimum consecutive failures for the probe to be considered failed after having succeeded.
successThreshold: 3 # Minimum consecutive successes for the probe to be considered successful after having failed.
timeoutSeconds: 1 # Number of seconds after which the probe times out.
build:
depends:
kind: build
nameOrGUID: "build"
- name: "exec-docker"
type: docker # Options: [docker (default), build, preInstalled]
type: docker # Options: [docker (default), preInstalled]
command: "roslaunch talker talker.launch"
runAsBash: True
limits: # Optional
Expand All @@ -58,7 +38,7 @@ spec:
kind: secret
nameOrGUID: "secret-docker"
- name: "exec-preInstalled"
type: preInstalled # Options: [docker (default), build, preInstalled]
type: preInstalled # Options: [docker (default), preInstalled]
command: "roslaunch talker talker.launch"
environmentArgs:
- name: "key1" # Required
Expand Down
14 changes: 1 addition & 13 deletions riocli/apply/manifests/package-ros-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,8 @@ spec:
cloud:
replicas: 1 # Required
executables: # Required
- name: "exec-build"
type: build # Options: [docker (default), build, preInstalled]
command: "roslaunch talker talker.launch"
runAsBash: True
simulation: False
limits:
cpu: 0.025 # Unit: Core Options: [Multiple of 0.025, <= 8]
memory: 128 # Unit: MB Options: [Multiple of 128, <= 32768]
build:
depends:
kind: build
nameOrGUID: "build"
- name: "exec-docker"
type: docker # Options: [docker (default), build, preInstalled]
type: docker # Options: [docker (default), preInstalled]
command: "roslaunch talker talker.launch"
runAsBash: True
simulation: False
Expand Down
23 changes: 2 additions & 21 deletions riocli/apply/manifests/package-ros-device-no-rosbag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,8 @@ spec:
arch: amd64 # Options: [arm32v7, arm64v8, amd64]
restart: always # Options: [always, never, onfailure]
executables: # Required
- name: "exec-build"
type: build # Options: [docker (default), build, preInstalled]
command: "roslaunch talker talker.launch"
runAsBash: True
limits: # Optional
cpu: 0.025 # Unit: Core (Optional)
memory: 128 # Unit: MB (Optional)
livenessProbe: # Optional
tcpSocket:
port: 999
initialDelaySeconds: 5 # Number of seconds after the container has started before liveness probes are initiated.
periodSeconds: 10 # How often (in seconds) to perform the probe.
failureThreshold: 1 # Minimum consecutive failures for the probe to be considered failed after having succeeded.
successThreshold: 3 # Minimum consecutive successes for the probe to be considered successful after having failed.
timeoutSeconds: 1 # Number of seconds after which the probe times out.
build:
depends:
kind: build
nameOrGUID: "build"
- name: "exec-docker"
type: docker # Options: [docker (default), build, preInstalled]
type: docker # Options: [docker (default), preInstalled]
command: "roslaunch talker talker.launch"
runAsBash: True
limits: # Optional
Expand All @@ -57,7 +38,7 @@ spec:
kind: secret
nameOrGUID: "secret-docker"
- name: "exec-preInstalled"
type: preInstalled # Options: [docker (default), build, preInstalled]
type: preInstalled # Options: [docker (default), preInstalled]
command: "roslaunch talker talker.launch"
environmentArgs:
- name: "key1" # Required
Expand Down
22 changes: 1 addition & 21 deletions riocli/apply/manifests/package-ros-device-rosbag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,8 @@ spec:
arch: amd64 # Options: [arm32v7, arm64v8, amd64]
restart: always # Options: [always, never, onfailure]
executables: # Required
- name: "exec-build"
type: build # Options: [docker (default), build, preInstalled]
command: "roslaunch talker talker.launch"
runAsBash: True
limits: # Optional
cpu: 0.025 # Unit: Core (Optional)
memory: 128 # Unit: MB (Optional)
livenessProbe: # Optional
httpGet:
path: "/"
port: 90
initialDelaySeconds: 5 # Number of seconds after the container has started before liveness probes are initiated.
periodSeconds: 10 # How often (in seconds) to perform the probe.
failureThreshold: 1 # Minimum consecutive failures for the probe to be considered failed after having succeeded.
successThreshold: 3 # Minimum consecutive successes for the probe to be considered successful after having failed.
timeoutSeconds: 1 # Number of seconds after which the probe times out.
build:
depends:
kind: build
nameOrGUID: "build"
- name: "exec-docker"
type: docker # Options: [docker (default), build, preInstalled]
type: docker # Options: [docker (default), preInstalled]
command: "roslaunch talker talker.launch"
runAsBash: True
limits: # Optional
Expand Down
Loading

0 comments on commit bf412ae

Please sign in to comment.