Skip to content

Commit

Permalink
general update
Browse files Browse the repository at this point in the history
  • Loading branch information
eumel8 committed Sep 27, 2024
1 parent dd2ab20 commit 29c5bd6
Show file tree
Hide file tree
Showing 342 changed files with 50 additions and 164,957 deletions.
68 changes: 0 additions & 68 deletions .drone.ci.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .drone.yml

This file was deleted.

30 changes: 1 addition & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[![Build Status](https://cloud.drone.io/api/badges/leodotcloud/swiss-army-knife/status.svg)](https://cloud.drone.io/leodotcloud/swiss-army-knife)
[![Pulls](https://img.shields.io/docker/pulls/leodotcloud/swiss-army-knife.svg)](https://hub.docker.com/r/leodotcloud/swiss-army-knife)
[![Twitter](https://img.shields.io/twitter/follow/leodotcloud?style=social&logo=twitter)](https://twitter.com/leodotcloud)

swiss-army-knife
========
================

Packing any application with a tiny/bare minimal base image sounds like an awesome/cool/intelligent idea, until things break and there are not tools inside the container to debug the problem at hand.
This repo/docker image tries to solve this problem by having a different image with all possible tools needed to debug majority of the problems in a production environment.
Expand All @@ -25,30 +24,3 @@ docker exec -it swiss-army-knife bash
tcpdump -i eth0 -vvv -nn -s0 -SS -XX
```

## Building

This repo can be built locally using `drone` cli ([docs](https://docs.drone.io/)) using `exec` pipeline type. Since, local builds use the host docker, it's necessary to mark the repo as "trusted" for the "publish" step.

Build all steps:
```bash
drone exec --trusted
```

Build specific steps:
```bash
drone exec --include=lint
drone exec --include=test
drone exec --include=version,build
drone exec --trusted --include=publish
```

To override and specify custom configuration, edit `custom.env` file and use:
```bash
drone exec --trusted --env-file=custom.env
```

For using secrets locally:
```bash
drone exec --secrets-file=secrets.env
```

21 changes: 13 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
module github.com/leodotcloud/swiss-army-knife
module github.com/mcsps/swiss-army-knife

go 1.13
go 1.23.1

require (
github.com/Sirupsen/logrus v1.0.4 // indirect
github.com/leodotcloud/log v0.1.0
github.com/rancher/go-rancher-metadata v0.0.0-20170929155856-d2103caca587
github.com/urfave/cli v1.22.3
golang.org/x/crypto v0.0.0-20180119165957-a66000089151 // indirect
golang.org/x/sys v0.0.0-20180117170059-2c42eef0765b // indirect
github.com/leodotcloud/log v0.1.2
github.com/leodotcloud/swiss-army-knife v0.0.0-20230224081750-927d48a856bb
github.com/urfave/cli v1.22.15
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
github.com/rancher/log v0.1.2 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
)
44 changes: 35 additions & 9 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,22 +1,48 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/Sirupsen/logrus v1.0.4 h1:yilvuj073Hm7wwwz12E96GjrdivMNuTMJk9ddjde+D8=
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/Sirupsen/logrus v1.0.4/go.mod h1:rmk17hk6i8ZSAJkSDa7nOxamrG+SP4P0mm+DAvExv4U=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/leodotcloud/log v0.1.0 h1:sx3MwuD7q9Van4nbonbNbYREQCTJKehWfhm8I6ovYm0=
github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4=
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/leodotcloud/log v0.1.0/go.mod h1:nUeGmzAy2eQifbL7coShqTc1EmaDKOJBQNzDCD9YWLw=
github.com/leodotcloud/log v0.1.2 h1:siy6OLdVRC6X7MARFUJUMbxj5sJpNj1cbbuYP56m7oc=
github.com/leodotcloud/log v0.1.2/go.mod h1:nUeGmzAy2eQifbL7coShqTc1EmaDKOJBQNzDCD9YWLw=
github.com/leodotcloud/swiss-army-knife v0.0.0-20230224081750-927d48a856bb h1:KdDxJy6xFHcnKVQmDmCbriN862tQPTnVUOYuX90ECHo=
github.com/leodotcloud/swiss-army-knife v0.0.0-20230224081750-927d48a856bb/go.mod h1:yUfHlxH4J0fqdaajWdLAFE7QpII83h5EUmD9U4ghvok=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rancher/go-rancher-metadata v0.0.0-20170929155856-d2103caca587 h1:T97rmLRz0aLeqPwj1isJ+IF34XI0yfoXXfoU0nNhwdM=
github.com/rancher/go-rancher-metadata v0.0.0-20170929155856-d2103caca587/go.mod h1:2GCT10S59Rl3M/hwW7BG6MMCqvuedd7VWJ1TneSeWsQ=
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
github.com/rancher/log v0.1.2 h1:tCozDe6VV4U9QR//ELfF7Xjkk2oXCzqNWnhlo+SdeWQ=
github.com/rancher/log v0.1.2/go.mod h1:HzDw5KzQ4jP7jjQ6V7IdMPCsIyTt8D7DS8AenrdX7wg=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/urfave/cli v1.22.3 h1:FpNT6zq26xNpHZy08emi755QwzLPs6Pukqjlc7RfOMU=
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/urfave/cli v1.22.3/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
golang.org/x/crypto v0.0.0-20180119165957-a66000089151 h1:du7dTgoJooIwkyksVuOCfUbQDgZE9oIUdVk/v/tqou4=
github.com/urfave/cli v1.22.15 h1:nuqt+pdC/KqswQKhETJjo7pvn/k4xMUxgW6liI7XpnM=
github.com/urfave/cli v1.22.15/go.mod h1:wSan1hmo5zeyLGBjRJbzRTNk8gwoYa2B9n4q9dmRIc0=
golang.org/x/crypto v0.0.0-20180119165957-a66000089151/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/sys v0.0.0-20180117170059-2c42eef0765b h1:mxo/dXmtEd5rXc/ZzMKg0qDhMT+51+LvV65S9dP6nh4=
golang.org/x/sys v0.0.0-20180117170059-2c42eef0765b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:24.04
LABEL org.opencontainers.image.authors="[email protected]"
LABEL version="1.0.0"
LABEL description="Swiss Army Knife Docker Image"
Expand Down
1 change: 0 additions & 1 deletion vendor/github.com/Sirupsen/logrus/.gitignore

This file was deleted.

15 changes: 0 additions & 15 deletions vendor/github.com/Sirupsen/logrus/.travis.yml

This file was deleted.

Loading

0 comments on commit 29c5bd6

Please sign in to comment.