Skip to content

Commit 2149ec2

Browse files
committed
Build with --network=host
1 parent d1c8411 commit 2149ec2

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ push: test
4141
# Opens a shell in the container for debugging
4242
.PHONY: shell
4343
shell:
44-
docker run --rm -it "$$(docker build -q .)" sh
44+
docker run --rm -it "$$(docker build --network=host -q .)" sh
4545

4646
# Runs tests
4747
.PHONY: test
4848
test:
49-
docker run --rm -v "$${PWD}/test:/test" "$$(docker build -q .)" sh -c \
49+
docker run --rm -v "$${PWD}/test:/test" "$$(docker build --network=host -q .)" sh -c \
5050
'cd /tmp \
5151
&& cp -r /test/before actual \
5252
&& cp -r /test/after expected \

test/after/hello.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8" ?>
2+
<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd">
23
<androidx.constraintlayout.widget.ConstraintLayout
34
xmlns:android="http://schemas.android.com/apk/res/android"
45
xmlns:app="http://schemas.android.com/apk/res-auto"

test/before/hello.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?xml version="1.0" encoding="utf-8" ?><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content"><TextView style="@style/foobar" android:id="@+id/body" android:layout_width="wrap_content" tools:text="Hello world" /></androidx.constraintlayout.widget.ConstraintLayout>
1+
<?xml version="1.0" encoding="utf-8" ?><!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd"><androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content"><TextView style="@style/foobar" android:id="@+id/body" android:layout_width="wrap_content" tools:text="Hello world" /></androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)