Skip to content

Commit e5561f7

Browse files
authored
fix some samples after releasing v2 (#212)
1 parent 9726bee commit e5561f7

File tree

8 files changed

+10
-12
lines changed

8 files changed

+10
-12
lines changed

.github/workflows/makefile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
with:
2121
node-version: 14
2222

23-
# see https://github.com/localstack/localstack/pull/6831
24-
# remove once no longer needed
23+
# see https://github.com/localstack/localstack/pull/6831
24+
# remove once no longer needed
2525
- name: Fix pyOpenSSL version
2626
run: pip install --upgrade pyOpenSSL
2727

@@ -40,7 +40,7 @@ jobs:
4040
git config --global user.name "Localstack Pro-Samples"
4141
4242
- name: Pull the latest docker image
43-
run: docker pull localstack/localstack
43+
run: docker pull localstack/localstack-pro
4444

4545
- name: Execute tests
4646
env:

athena-s3-queries/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ install: ## Install dependencies
1010
# @test -e node_modules || npm install
1111
@which localstack || pip install localstack
1212
@which awslocal || pip install awscli-local
13-
docker pull localstack/bigdata
1413

1514
run: ## Set up database connections and run Athena queries locally
1615
@make install; \

glue-etl-jobs/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ awslocal glue create-table --database legislators \
2727
awslocal glue create-connection \
2828
--connection-input '{"Name": "'$CONNECTION_NAME'", "ConnectionType": "JDBC", "ConnectionProperties": {"USERNAME": "test", "PASSWORD": "test", "JDBC_CONNECTION_URL": "jdbc:postgresql://localhost.localstack.cloud:'$db_port'"}}'
2929

30-
secret=$(awslocal secretsmanager create-secret --name mysecret --secret-string "12345678" | jq -r ".ARN")
30+
secret=$(awslocal secretsmanager create-secret --name pass --secret-string "test" | jq -r ".ARN")
3131

3232
echo Creating Postgres database tables with data ...
3333
awslocal rds-data execute-statement --resource-arn arn:aws:rds:us-east-1:000000000000:cluster:$CLUSTER_IDENTIFIER --secret-arn $secret --sql 'CREATE TABLE IF NOT EXISTS persons(id varchar, name varchar)'

glue-redshift-crawler/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ usage: ## Show this help
88
install: ## Install dependencies
99
@which localstack || pip install localstack
1010
@which awslocal || pip install awscli-local
11-
docker pull localstack/bigdata
1211

1312
run: ## Prepare environment and run sample
1413
./run.sh

java-notification-app/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3.8"
33
services:
44
localstack:
55
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
6-
image: localstack/localstack
6+
image: localstack/localstack-pro
77
ports:
88
- "127.0.0.1:4510-4559:4510-4559" # external service port range
99
- "127.0.0.1:4566:4566" # LocalStack Edge Proxy
@@ -15,7 +15,7 @@ services:
1515
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY-}
1616
- SMTP_HOST=smtp:1025
1717
volumes:
18-
- "${TMPDIR:-/tmp}/localstack:/tmp/localstack"
18+
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
1919
- "/var/run/docker.sock:/var/run/docker.sock"
2020

2121
smtp:

lambda-mounting-and-debugging/javascript/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: "3.8"
33
services:
44
localstack:
55
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
6-
image: localstack/localstack:latest
6+
image: localstack/localstack-pro:latest
77
ports:
88
- "127.0.0.1:4566:4566" # LocalStack Gateway
99
- "127.0.0.1:4510-4559:4510-4559" # external services port range

sample-archive/spring-cloud-function-microservice/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ version: "3.8"
1919
services:
2020
localstack:
2121
container_name: "${LOCALSTACK_DOCKER_NAME-localstack_main}"
22-
image: localstack/localstack
22+
image: localstack/localstack-pro
2323
network_mode: bridge
2424
ports:
2525
- "127.0.0.1:53:53"
@@ -41,5 +41,5 @@ services:
4141
- LAMBDA_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5050
4242
- LAMBDA_DOCKER_FLAGS=-p 127.0.0.1:5050:5050
4343
volumes:
44-
- "${TMPDIR:-/tmp/}localstack:/tmp/localstack"
44+
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
4545
- "/var/run/docker.sock:/var/run/docker.sock"

testcontainers-java-sample/LocalStackTestcontainers/src/test/java/TestRDS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
public class TestRDS {
2323

24-
private DockerImageName localstackImage = DockerImageName.parse("localstack/localstack:1.4.0");
24+
private DockerImageName localstackImage = DockerImageName.parse("localstack/localstack-pro:latest");
2525
private String api_key = System.getenv("LOCALSTACK_API_KEY");
2626

2727
/**

0 commit comments

Comments
 (0)