Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit fcc9149

Browse files
committed
Added teleport #1235
1 parent 1ae45ae commit fcc9149

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed

renovate.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,6 +2529,17 @@
25292529
"extractVersionTemplate": "^v(?<version>.+?)$",
25302530
"versioningTemplate": "loose"
25312531
},
2532+
{
2533+
"fileMatch": [
2534+
"^tools/teleport/manifest.yaml$"
2535+
],
2536+
"matchStrings": [
2537+
"version: \"?(?<currentValue>.*?)\"?\\n"
2538+
],
2539+
"depNameTemplate": "gravitational/teleport",
2540+
"datasourceTemplate": "github-releases",
2541+
"extractVersionTemplate": "^v(?<version>.+?)$"
2542+
},
25322543
{
25332544
"fileMatch": [
25342545
"^tools/terraform/manifest.yaml$"

tools/teleport/Dockerfile.template

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#syntax=docker/dockerfile:1.4.3
2+
3+
ARG ref=main
4+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
5+
6+
ARG name
7+
ARG version
8+
9+
RUN <<EOF
10+
curl --silent --location "https://get.gravitational.com/teleport-v${version}-linux-${alt_arch}-bin.tar.gz" \
11+
| tar --extract --gzip --directory="${prefix}${target}/bin/" --strip-components=1 --no-same-owner \
12+
teleport/tctl \
13+
teleport/teleport \
14+
teleport/tbot \
15+
teleport/tsh
16+
curl --silent --location --output "${prefix}/etc/systemd/system/teleport.service" \
17+
"https://github.com/gravitational/teleport/blob/v${version}/examples/systemd/teleport.service"
18+
sed -i "s|ExecStart=/usr/local/bin/teleport|ExecStart=${target}/bin/teleport|" "${prefix}/etc/systemd/system/teleport.service"
19+
EOF

tools/teleport/manifest.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: teleport
2+
version: 10.2.6
3+
check: ${binary} version | cut -d' ' -f2 | tr -d v
4+
tags:
5+
- type/cli
6+
- type/daemon
7+
- category/development
8+
- tunneling
9+
homepage: https://github.com/gravitational/teleport
10+
description: Easiest, most secure way to access infrastructure
11+
renovate:
12+
datasource: github-releases
13+
package: gravitational/teleport
14+
extractVersion: ^v(?<version>.+?)$

tools/teleport/post_install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -o errexit
3+
4+
sed -i "s|ExecStart=/usr/local/bin/teleport|ExecStart=${target}/bin/teleport|" "${prefix}/etc/systemd/system/teleport.service"
5+
6+
if test -z "${prefix}" && has_systemd; then
7+
echo "Reload systemd"
8+
systemctl daemon-reload
9+
fi

0 commit comments

Comments
 (0)