File tree 4 files changed +11
-6
lines changed
4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 4
4
"context"
5
5
"flag"
6
6
"fmt"
7
- "github.com/e2b-dev/infra/packages/orchestrator/internal/proxy"
8
7
"log"
9
8
"os"
10
9
"os/signal"
@@ -14,6 +13,7 @@ import (
14
13
"go.opentelemetry.io/otel"
15
14
16
15
"github.com/e2b-dev/infra/packages/orchestrator/internal/dns"
16
+ "github.com/e2b-dev/infra/packages/orchestrator/internal/proxy"
17
17
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox"
18
18
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/nbd"
19
19
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/network"
@@ -52,6 +52,8 @@ func main() {
52
52
}()
53
53
54
54
dnsServer := dns .New ()
55
+ proxyServer := proxy .New (3333 )
56
+
55
57
go func () {
56
58
log .Printf ("Starting DNS server" )
57
59
@@ -88,6 +90,7 @@ func main() {
88
90
* buildId ,
89
91
* sandboxId + "-" + strconv .Itoa (v ),
90
92
dnsServer ,
93
+ proxyServer ,
91
94
time .Duration (* keepAlive )* time .Second ,
92
95
networkPool ,
93
96
templateCache ,
Original file line number Diff line number Diff line change 4
4
"context"
5
5
"flag"
6
6
"fmt"
7
- "github.com/e2b-dev/infra/packages/orchestrator/internal/proxy"
8
7
"log"
9
8
"os"
10
9
"os/signal"
@@ -15,6 +14,7 @@ import (
15
14
"golang.org/x/sync/errgroup"
16
15
17
16
"github.com/e2b-dev/infra/packages/orchestrator/internal/dns"
17
+ "github.com/e2b-dev/infra/packages/orchestrator/internal/proxy"
18
18
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox"
19
19
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/nbd"
20
20
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/network"
@@ -52,6 +52,7 @@ func main() {
52
52
cancel ()
53
53
}()
54
54
55
+ proxyServer := proxy .New (3333 )
55
56
dnsServer := dns .New ()
56
57
go func () {
57
58
log .Printf ("Starting DNS server" )
@@ -91,6 +92,7 @@ func main() {
91
92
* buildId ,
92
93
* sandboxId + "-" + strconv .Itoa (v ),
93
94
dnsServer ,
95
+ proxyServer ,
94
96
time .Duration (* keepAlive )* time .Second ,
95
97
networkPool ,
96
98
templateCache ,
Original file line number Diff line number Diff line change 7
7
"context"
8
8
"errors"
9
9
"fmt"
10
- "github.com/e2b-dev/infra/packages/orchestrator/internal/proxy"
11
10
"net/http"
12
11
"os"
13
12
"sync/atomic"
@@ -22,6 +21,7 @@ import (
22
21
"golang.org/x/sys/unix"
23
22
24
23
"github.com/e2b-dev/infra/packages/orchestrator/internal/dns"
24
+ "github.com/e2b-dev/infra/packages/orchestrator/internal/proxy"
25
25
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/build"
26
26
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/fc"
27
27
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/nbd"
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import (
7
7
"context"
8
8
"errors"
9
9
"fmt"
10
- "github.com/e2b-dev/infra/packages/orchestrator/internal/proxy"
11
10
"net/http"
12
11
"sync/atomic"
13
12
"time"
14
13
15
14
"go.opentelemetry.io/otel/trace"
16
15
17
16
"github.com/e2b-dev/infra/packages/orchestrator/internal/dns"
17
+ "github.com/e2b-dev/infra/packages/orchestrator/internal/proxy"
18
18
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/build"
19
19
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/nbd"
20
20
"github.com/e2b-dev/infra/packages/orchestrator/internal/sandbox/network"
@@ -69,8 +69,8 @@ func (s *Sandbox) LoggerMetadata() sbxlogger.SandboxMetadata {
69
69
// Run cleanup functions for the already initialized resources if there is any error or after you are done with the started sandbox.
70
70
func NewSandbox (
71
71
72
- // YOU ARE IN SANDBOX_OTHER.GO
73
- // YOU PROBABLY WANT TO BE IN SANDBOX_LINUX.GO
72
+ // YOU ARE IN SANDBOX_OTHER.GO
73
+ // YOU PROBABLY WANT TO BE IN SANDBOX_LINUX.GO
74
74
75
75
ctx context.Context ,
76
76
tracer trace.Tracer ,
You can’t perform that action at this time.
0 commit comments