Skip to content

Commit

Permalink
update python
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsiaw committed Jul 23, 2024
1 parent e1649ba commit eec3970
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 62 deletions.
12 changes: 3 additions & 9 deletions dockerfiles/run-pack/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
FROM alpine:3.5

ENV GOPATH /.go
ENV GOBIN $GOPATH/bin
ENV PATH=$GOBIN:$PATH
FROM alpine

ADD . /.go/src/app

RUN apk add --no-cache go curl git gcc libc-dev glide \
&& cd $GOPATH/src/app \
&& mkdir -p $GOBIN \
RUN apk add --no-cache go curl git gcc libc-dev \
&& cd /.go/src/app \
&& mkdir /barcelona \
&& glide install \
&& go build -o /barcelona/barcelona-run --ldflags '-linkmode external -extldflags "-static"' \
&& rm -rf /.go \
&& apk del --purge go curl git gcc libc-dev
Expand Down
40 changes: 0 additions & 40 deletions dockerfiles/run-pack/glide.lock

This file was deleted.

11 changes: 0 additions & 11 deletions dockerfiles/run-pack/glide.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions dockerfiles/run-pack/watch_interactive_session_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package main

import (
"fmt"
"log"
"testing"

ps "github.com/mitchellh/go-ps"
Expand All @@ -24,6 +26,7 @@ func (p *ProcessMock) Executable() string {
}

func TestOtherSessionRunning(t *testing.T) {
log.Println(fmt.Sprintf("Interactive session has not started for %d seconds", 123))
ps1 := []ps.Process{
&ProcessMock{pid: 1, ppid: 0},
&ProcessMock{pid: 10, ppid: 1},
Expand Down
2 changes: 1 addition & 1 deletion lib/barcelona/network/autoscaling_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def build_resources
end

j.Handler "index.lambda_handler"
j.Runtime "python3.7"
j.Runtime "python3.12"
j.Timeout "60"
j.Role get_attr("ASGDrainingFunctionRole", "Arn")
j.Environment do |j|
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/barcelona/network/network_stack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
"ZipFile" => kind_of(String)
},
"Handler" => "index.lambda_handler",
"Runtime" => "python3.7",
"Runtime" => "python3.12",
"Timeout" => "60",
"Role" => {"Fn::GetAtt" => ["ASGDrainingFunctionRole", "Arn"]},
"Environment" => {
Expand Down

0 comments on commit eec3970

Please sign in to comment.