Docker container image for AWS Glue ETL
1M+
AWS Glue provides Docker container images that enable developers to build and test their ETL (Extract, Transform, Load) jobs in local development environments. These containers provide a development environment that closely resembles the AWS Glue service, offering:
The containers support both batch and streaming workloads, and can be used with direct script development and test-driven development approaches.
3.5.4-amzn-01.7.1.amzn.1-1.amzn2023)0.15.0.amzn.5-1.amzn2023)3.3.0.amzn.0-1.amzn2023)x86_64 and arm64 architectures# Set up workspace and script locations
WORKSPACE_LOCATION=/local_path_to_workspace
SCRIPT_FILE_NAME=sample.py
# Run container with spark-submit
docker run -it --rm \
-v ~/.aws:/home/hadoop/.aws \
-v $WORKSPACE_LOCATION:/home/hadoop/workspace/ \
-e AWS_PROFILE=$PROFILE_NAME \
--name glue5_spark_submit \
public.ecr.aws/glue/aws-glue-libs:5 \
spark-submit /home/hadoop/workspace/src/$SCRIPT_FILE_NAME
# Launch interactive PySpark shell
docker run -it --rm \
-v ~/.aws:/home/hadoop/.aws \
-e AWS_PROFILE=$PROFILE_NAME \
--name glue5_pyspark \
public.ecr.aws/glue/aws-glue-libs:5 \
pyspark
docker run -i --rm \
-v ~/.aws:/home/hadoop/.aws \
-v $WORKSPACE_LOCATION:/home/hadoop/workspace/ \
--workdir /home/hadoop/workspace \
-e AWS_PROFILE=$PROFILE_NAME \
--name glue5_pytest \
public.ecr.aws/glue/aws-glue-libs:5 \
-c "python3.11 -m pytest --disable-warnings"
hadoop (previously glue_user)⚠️ These container images are designed exclusively for local development and testing purposes.
The containers should only be run in secure, isolated development environments.
Refer the following for usage instructions
Content type
Image
Digest
sha256:9a96a1097…
Size
4.8 GB
Last updated
about 2 months ago
docker pull amazon/aws-glue-libs:5Pulls:
8,498
Jun 29 to Jul 5